• Resolved bartekduls

    (@bartekduls)


    Hello

    I have a problem. The plugin points the canonical pages wrong. For example:
    1. site.com/page/2/?amp
    canonical: site.com/page/2/?amp
    2. site.com/category/hgerhhdefh/ (404 page)
    canonical: site.com/category/hgerhhdefh/

    How do I remove canonical on non-existent pages?

    Second problem: How do I remove “canonical” from “noindex” pages?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Benjamin Denis

    (@rainbowgeek)

    Hi,
    what’s AMP do you have?

    Canonical tag is automatically removed if your page is in noindex.

    Thread Starter bartekduls

    (@bartekduls)

    I don’t have AMP implemented.
    Examples 404 page not found:
    <meta name=”robots” content=”noindex” />
    <link rel=”canonical” href=”site.com/page/3/etjhtrj/” />
    <meta property=”og:url” content=”site.com/page/3/etjhtrj/” />

    Second example with the not found (404) page:
    <meta name=”robots” content=”noindex” />
    <link rel=”canonical” href=”site.com/page/3/aaaaaaa/” />
    <meta property=”og:url” content=”site.com/page/3/aaaaaaa/” />

    Third example:
    Website: site.com/page/3/?gsfhdfh%2F
    <link rel=”canonical” href=”site.com/?gsfhdfh/” />

    The fourth example is correct:
    Website: site.com/category-name/?jdvjsfg
    <link rel=”canonical” href=”site.com/category-name/” />

    • This reply was modified 6 years, 1 month ago by bartekduls.
    • This reply was modified 6 years, 1 month ago by bartekduls.
    • This reply was modified 6 years, 1 month ago by bartekduls.
    • This reply was modified 6 years, 1 month ago by bartekduls.
    Plugin Author Benjamin Denis

    (@rainbowgeek)

    OK, we found the issue, it will be fixed in the next update.
    ETA: tomorrow

    Thread Starter bartekduls

    (@bartekduls)

    hmm maybe the pro version for finding the bug? 🙂

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    Unfortunately, it doesn’t work like that but we will mention you in our changelog 😉

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Canonical link problem’ is closed to new replies.