Wrong URLs for canonical and open graph when using url parameters
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?
- The topic ‘Wrong URLs for canonical and open graph when using url parameters’ is closed to new replies.