Support » Plugin: AMP for WP - Accelerated Mobile Pages » Ugly internal links – ?q=/

  • Resolved YuriV



    Just installed but we’ll have to revert to an older version again. This because of strange internal links in the new version of the AMP-pages. Internal links suddenly had formats like:


    That’s ugly, I guess no good for SEO-reason and maybe causing CPU-load as well.

    Hope you guys can take a look at it.

    Thanks in advance,


    PS: Auto Ads still didn’t work in

Viewing 7 replies - 16 through 22 (of 22 total)
  • Plugin Contributor ampforwp


    Hey Mixar,

    Good to hear that it’s working fine you and thank you for the Update 🙂

    @mixar oh right I didn’t see that before so yeah we don’t need that and there’s one more line which is also unnecessary and that is $query_arg = str_replace($query_name, '', $query_arg); this line which is not needed so you can remove this also.

    @sejiro I removed this line and all works as expected.

    Plugin Author Mohammed Kaludi


    We have fixed this issue and pushed an update an hour ago, please update to the latest version ( and do let us know if it fixed.

    Issues fixed in this update.
    Fixed: AMP renders with ?q after the /amp #2361
    Fixed: iThemes Sync can not connect to the site. #2380
    Fixed: H1 to H6 styling is not reflecting in the Swift theme #2383
    Fixed: Underline on Links function is not working. #2372
    Fixed: WordPress Admin Color Scheme not applying #2390
    Fixed: Breadcrumbs are not disabling when the sidebar template is selected #2376
    Fixed: All the Images are Adding AMP at the End of their URL. #2391

    Thread Starter YuriV


    Thanks. Update solved the issue.

    I still get ?q= with amp redirect when i visit a page or post directly. Only redirect that works is /blog/

    Updated to latest. Cleared hosting cache and browser cache.

    Plugin Contributor ampforwp


    Hi Aar6on67,

    I’ve replied to you on the Thread . You can view the response at the above link.

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Ugly internal links – ?q=/’ is closed to new replies.