Exit mobile version link issue in amp

Posted in: Newspaper
Post count: 221

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&amp=1 to the url. I think the &amp=1 should not be added so that the user can see the non-amp version of the article.

Thanks..

Post count: 221

Please check this section of the official documentation. They are mentioning only ?noamp=mobile and not &amp=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.

Post count: 21065

Hello @Prateek!

This issue has been discussed already here, please check: https://forum.tagdiv.com/topic/amp-setup-in-transitional-mode/

Thank you!

Post count: 221

But in my case, this setting is already turned off since the very first day I installed the plugins.

Moreover, I don’t want to remove the button. I want it to redirect to non-amp version and not add &amp=1 at the end of the url.

Post count: 221

is anyone there?

Post count: 221

When are you going to reply? What kind of support is this? The founders behind the business should be held accountable. This system needs big improvement.

Post count: 21065

Hello @prateek!

I’m sorry, but you can not have the option and also to disable that button which appears there. The AMP only works better with the Mobile Theme plugin.

Thank you!

Post count: 221

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.

Post count: 21065

Hello @prateek!

When you have the mobile theme plugin installed and activated,  it will overwrite the responsive version for mobile.
You cannot choose when the mobile theme should work on your website.

Thank you!

Post count: 221

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.

Post count: 21065

Hello @prateek!

In these conditions, the button works well for me. Check if you do not have any errors in the console while you click on that button.

Thank you!

Post count: 221

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 &amp=1 after that.

Now clicking this button will redirect user to domain[dot]com/this-is-an-article/?noamp=mobile&amp=1

This behavious again loads the amp-version of the article because the url has &amp=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.

Post count: 21065

Hello @prateek!

This button should not lead to a /?amp page. This button shouldn’t be there because it is not part of our theme and we cannot customize it.

Thank you!

Post count: 221

Is there any way to remove this button? I am using transitional mode and the redirect mobile users to amp option is turned off.

Thanks

Post count: 21065

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!

Post count: 221

I have all the settings exactly as you mentioned but it still doesn’t go away. Maybe it’s a problem with the AMP plugin.
I will contact them.

Thanks for your time.

Viewing 16 posts - 1 through 16 (of 16 total)
The forum ‘Newspaper’ is closed to new topics and replies.