Hi,
At the very bottom of amp pages, the section with the link that says exit mobile version should redirect to the non-amp version of the article. But it still shows the amp version upon clicking. For an amp article the url has ?amp=1 appended to it. When this button is clicked, it appends ?noamp=mobile&=1 to the url. I think the &=1 should not be added so that the user can see the non-amp version of the article.
Thanks..
Please check this section of the official documentation. They are mentioning only ?noamp=mobile and not &=1 after that. Is it hardcoded by tagdiv at the end of every link. Even when I click my logo, it goes to homepage.com/?amp=1. But I don’t use amp for homepage, so it redirects to homepage.com removing the amp part.
Hello @Prateek!
This issue has been discussed already here, please check: https://forum.tagdiv.com/topic/amp-setup-in-transitional-mode/
Thank you!
This is my setting.
I have installed the mobile theme plugins as well as the AMP plugin. But I am only using mobile theme for the AMP site. For normal pages, I am using desktop responsive version for mobile.
In AMP plugin settings, the redirect mobile visitors to AMP is turned off already.
There are three options in Theme Panel→Mobile theme→Mobile settings(Use mobile theme for). You can choose between Mobile, AMP + Mobile, AMP.
1 Mobile – The visitor will see mobile theme version when they use your website on a mobile device, the amp version uses default amp theme provided by the amp plugin.
2 Mobile + AMP – The visitor using mobile devices will see the mobile theme version, but the AMP articles will also use the mobile theme.
3 AMP – The visitors using mobile devices will see the desktop responsive version but the amp version will show them mobile theme
I have enabled option 3.
I only use AMP for articles.
For homepage, about page, contact page, archives and all the other content, I wanted to display full website so I chose option 3 which will only show mobile theme to amp version.
Now, I can see a button at the bottom called Exit Mobile Version. It’s very useful. Because visitors can choose to see the non-amp version of the article. But it’s not working.
The button is working but not as intended. Let me explain.
Suppose you have a page on your website that is not amp-enabled.
For example domain[dot]com/category/news/
If you add ?amp=1 at the end of this url(../news/?amp=1), it will still redirect you to ../news/
It’s because the amp version for that page does not exist. That’s an ideal behavious. No problem.
Now if a page is amp-enabled (for example, an article page), it creates problems. If you load an amp page on your system, you’ll notice that all the internal links on that page add ?amp=1 at the end of every url. For example, the author link, tags, categories links, other related articles, etc. (Even the exit mobile button link)
Now, if you click the author link or tags link or whatever link(on the amp page) that has no amp version, it will automatically remove the ?amp=1 from the end of url
Examples:-
domain[dot]com/author/bettina/?amp=1 will redirect to ../author/bettina/
domain[dot]com/tag/wordpress-theme/?amp=1 will redirect to ../tag/wordpress-theme/
Nothing against this behaviour because this is exactly how it should be.
But what if the exit mobile version button also has /?amp=1 at the end url (as I mentioned above). Then it becomes an issue.
This is the amp article url —> domain[dot]com/this-is-an-article/?amp=1
The exit mobile version button add this at the end of url: /?noamp=mobile. But the problem is it also adds &=1 after that.
Now clicking this button will redirect user to domain[dot]com/this-is-an-article/?noamp=mobile&=1
This behavious again loads the amp-version of the article because the url has &=1 at the end. The ?noamp=mobile alone would have redirected the visitor to non-amp version, but this is not the case.
This creates an endless loop and the visitor never gets to see the non-amp version.
Can it be resolved? You can ask again if I confused you.
Thanks.
Hello @prateek!
In order to disable this option “Exit mobile version”, you need to disable this setting: https://i.imgur.com/LxpDtB2.png
This button should not appear if you are in transitional mode and have this option turned off. Please have a look at this setting also: https://prnt.sc/vXrTWl5yXBE7
Thank you!
