Yoast SEO
Wrong URLs for canonical and open graph when using url parameters (1 post)

  1. mdidesign
    Posted 2 years ago #


    I have a problem with the generated canonical-link and open graph url set by WordPress SEO by Yoast. I have a page for a shop in WordPress. This one page is used for every product that I am showing - just the url parameters are different from product to product.

    Unfortunately the canonical url and open graph url just shows the url without the parameters. But I do need the parameters in the url.

    I tried it with a filter in functions.php, which works. But unfortunately the og:url shows the "&" in the url as "&" while the canonical url shows the "&" as a "&". So the canonical url and open graph url is never the same.

    How can I fix that?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.