• It appears that when certain mobile devices/browsers click on the view non-amp link, the page will refresh but won’t load the non-amp version.

    This has been confirmed with two iPhones – iPhone 8 running iOS 11 (latest available).

    Another odd behavior is that if one refreshes the amp page, then the view non-amp link works.

    Here is a video recording of the issue at hand:

    In this example, we click on the view non-amp version and the page simply reloads and doesn’t redirect to the proper place.

    At about 11 seconds in, the user refreshes the page using the browser reload button.

    From there, the view non-amp link works and loads the correct page.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Stephen Gravitt

    (@sgravitt1)

    This could be related, but I notice that the url in the view non amp link follows a structure like:

    domain.com/yourpage/?amp?nonamp=1

    I’m curious as to whether having two question marks in the URL is giving unexpected results in sensitive browsers.

    I’m going to try and inject the following to see if it helps:

    document.querySelector(".amp-view-full").setAttribute("href",document.querySelector(".amp-view-full").getAttribute("href").split("?amp?nonamp=1")[0]+"?nonamp=1")

    Thread Starter Stephen Gravitt

    (@sgravitt1)

    Working this issue from the JS side of things didn’t fix it but we’re seeing positive results from adjusting the php output for the view non amp link by stripping out the /amp and ?nonamp from the url.

    Hi, I just got a Google search console message for validation problems with no custom javascript included .. I enter https://search.google.com/test/amp and tells me it’s not an AMP page, to my surprise I try to load a web in mydomain.com/post/amp/ style and redirect all the urls to mydomain.com/post/ I don’t understand… this morning it worked perfectly.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    You seem to have a javascript added into the page.

    The Javascript is not allowed on the AMP pages. See: document.querySelector(“.amp-view-full”).setAttribute(“href”,document.querySelector(“.amp-view-full”).getAttribute(“href”).split(“?amp?nonamp=1”)[0]);

    You should remove it.

    Whats the reason for adding that one?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘View non-amp not working on mobile’ is closed to new replies.