Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Valid AMP pages have been decreasing in the past two weeks

$
0
0

Replies: 0

Hello guys,

since 6 May, which I think is the date of the latest update for “Glue for Yoast SEO & AMP”, the AMP pages indexed by Google Search Console have been decreasing, and currently only 2 AMP pages are correctly indexed, while 96 have “serious problems”. How can I solve the problem?
Seems like this is caused by a “custom javascript”, but I didn’t make any changes recently. All I am using for generating AMP pages is “AMP” plugin + “Glue for Yoast SEO & AMP”.

What is weird, is that if I test any page with Search Console, I get a “Valid AMP Page” message; but if I test the same page at “https://validator.ampproject.org/”, I get “Custom Javascript is not allowed” on line 31, column 13″, which is this portion of text:

	            <script>
                if (document.location.protocol != "https:") {
                    document.location = document.URL.replace(/^http:/i, "https:");
                }
            </script>

Please, help me. Thank you very much in advance.

Stefano


Viewing all articles
Browse latest Browse all 59525

Trending Articles