Menu links issue, /amp/?amp=1
-
Hello!
I have a problem with my site.
I already had experience of successfully setting up AMP pages with your plugin. And faced the same problem on multiple sites. And I decided to go through the whole setup cycle from scratch.I just created AMP version.
My Settings:
Reader Mode
Redirect mobile visitors to AMP
Paired URL Structure – Path suffix: /amp/I use Jannah theme for WordPress and I am setting the appearance of the AMP page through it.
The problem is here:
in the top right burger menu you can see that all links are “/amp/?amp=1”, but i choose ‘path suffix’, not ‘query parameter’.
I found a custom solution that removes these endings on links (you can see it on Nachrichten in burger menu).
To achieve these i used a href=”/nachrichten/”>Nachrichten in link texts in wordpress menu structure settings (wp-admin/nav-menus.php).This solution results in two links appearing in the page code. One of them is with the same ending “/amp/?amp=1”, and the other with the desired one is “/amp/”. It doesn’t look good, so i think there must be some alternative.
I also created custom footer menu for tests, where I only use links like <a href=”/nachrichten/”>Nachrichten – you can see it in the page.
Also in the code you can see that each page has two links.https://joxi.ru/eAOylqdh6QPZam
The main question is how to get rid of the ending “?amp=1” if I chose “Path suffix: /amp/”?
Could this be a plugin bug or is it some kind of bug on my side?The page I need help with: [log in to see the link]
- The topic ‘Menu links issue, /amp/?amp=1’ is closed to new replies.