Support » Plugin: AMP » Remove ?Amp in all urls when in AMP version

  • Resolved bruxs


    Hello, when I am in the AMP version of my blog, all the URLS to other articles have at the end the attribute “?Amp” this means that, if I open another article, continue browsing in the AMP version, is there a way to remove that “?amp” of all urls when I am on the AMP version?
    For this, if I open a new article from the AMP version go to the “normal” version (without amp) of my blog.
    Thanks for the help!

    • This topic was modified 1 year, 3 months ago by bruxs.
Viewing 3 replies - 1 through 3 (of 3 total)
  • @bruxs thanks for your inquiry!

    I believe the behavior you are referring to is AMP-to-AMP navigation which is applied by default in Transitional mode.

    To turn this off, you can use the following code snippet in your active theme’s functions.php file or using a custom plugin:

    add_filter( 'amp_to_amp_linking_enabled', '__return_false' );

    Thread Starter bruxs


    Thanks for the answer, this was the exact solution to what I was looking for and if the mode was transitional, would the same code work if I am in “reader mode”?

    Plugin Author Weston Ruter


    In Reader mode, this AMP-to-AMP linking is only active if you have Mobile Redirection enabled.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove ?Amp in all urls when in AMP version’ is closed to new replies.