WordPress.org

Forums

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

  1. mdidesign
    Member
    Posted 11 months ago #

    Hello,

    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?

    https://wordpress.org/plugins/wordpress-seo/

Reply

You must log in to post.

About this Plugin

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

About this Topic

Tags

No tags yet.