• Resolved Fran?uel Soares

    (@francuelsoares)


    In the AMP version, the plugin automatically puts /amp at the end of links generated by Pretty Links.

    This ends up giving 404 error if user clicks.

    Is there any custom way to hide the (/amp) parameter of certain links?

    That would be enough to fix it.

    The problem can be easily reproduced if you want to test it. You can use any version of WordPress, the AMP plugin and the Pretty Links plugin. Set the AMP plugin to transition mode and enter a page with the AMP version active. Within that page, you need to configure a link generated by Pretty Links. Click on that link and you will see the 404 error popping up.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Olá @francuelsoares,

    Obrigado por entrar em contato conosco, poderia compartilhar a URL e o UUID do seu site?

    Plugin Author Weston Ruter

    (@westonruter)

    You may consider switching the Paired URL Structure from /amp/ to ?amp=1 (on the Settings screen) which may also resolve this.

    • This reply was modified 2 years, 11 months ago by Weston Ruter.
    Thread Starter Fran?uel Soares

    (@francuelsoares)

    Fellyph,

    UUID: ampwp-cf2a7037-b215-5887-a81d-6ac75eea69a0

    https://www.francuelsoares.com.br/wolf-wp-3-0-0-guia-de-migracao/amp/

    The problem can be seen in the sidebar link titled “Hospedagem Umbler”.

    Weston,

    It wouldn’t be a viable solution as several of my AMP pages have already been indexed by Google with the /amp parameter

    Changing this will only have more 404 errors.

    Plugin Support Milind More

    (@milindmore22)

    Hello @francuelsoares

    You can also try using this mini plugin that will remove /amp/ endpoint from pretty links.

    let me know if this resolves your issue.

    Thread Starter Fran?uel Soares

    (@francuelsoares)

    Milind,

    It even solves, but I believe it is still not an optimized solution.

    I used Pretty Links here as an example only. We know that there are several other plugins of this same category, mainly the paid ones. And the ones I tested, the same problem happens.

    A generic solution for all of them I believe would have the most effect. I am the creator of a Premium theme, and my clients use many of these plugins. It would be a lot of work to create such a specific solution for each of them.

    Is there really no HTML attribute that I can add to the code so that the AMP plugin doesn’t change the link of that element?

    Plugin Author Weston Ruter

    (@westonruter)

    Is there really no HTML attribute that I can add to the code so that the AMP plugin doesn’t change the link of that element?

    Yes, you can add noamphtml to the rel attribute of a link to prevent AMP-to-AMP linking from being applied. For example:

    <a href="https://example.com/" rel="noamphtml">Example</a>

    Plugin Support Milind More

    (@milindmore22)

    @francuelsoares

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Incompatibility with the Pretty Links Plugin’ is closed to new replies.