Hello @rahulhog
Thanks for reaching out to us. You can find the ‘Exit Mobile Version’ link at the bottom of the page. If you’re unable to use a website feature, this link will take you to the non-AMP version where you can access the functionality.
Please note that removing the ?nonamp=mobile query parameter defeats its purpose. Furthermore, the ‘Exit Mobile Version’ link has a rel="nofollow" attribute, so it won’t be indexed by search engines.
Please elaborate on the specific issues you’re encountering with the query parameters.
We are looking forward to your response.
Thread Starter
Rahul
(@rahulhog)
Thanks for your response. I got so many issues on Google search console saying “Indexed, though blocked by robots.txt”. I disallowed all query parameters on my robots.txt. But then this “?nonamp=mobile” query is linked on all amp pages pages, which is allowed for indexing.
I know this is not a critical issue, but I need to solve this. I think it is better to remove the query string from the URL to remove this error.
Hello @rahulhog
Thank you for reaching out to us, the AMP plugin does not control the robots.txt, your SEO plugin might be able to make changes in your file, you can test robots.txt on Google Search Console.
To remove the “Exit Mobile Version” link Please add the following code snippet, I will recommend adding the snippet in your child themes functions.php or in custom plugin.
add_filter( 'amp_mobile_version_switcher_link_text', '__return_false' );
We hope this helps!
Thread Starter
Rahul
(@rahulhog)
As I said, I do not want to remove the “Exit Mobile Version” link entirely. I just want to remove the query parameter from the link. Is that possible?
Thanks.
Hello @rahulhog
There is no other way to change the link or remove ?noamp=mobile query parameter, it will be best to remove the amp to amp linking all together by adding the following code in your child theme or in a custom plugin.
add_filter( 'amp_to_amp_linking_enabled', '__return_false' );
Additionally, Can you please share your website or your support UUID by visiting AMP->Support so we can check indexing issue on your site.
-
This reply was modified 1 year, 8 months ago by
Milind More.
@rahulhog As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.