Quantcast
Channel: WordPress.org Forums » [Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Support
Viewing all articles
Browse latest Browse all 42467

vijayrajesh on "[Plugin: WordPress SEO by Yoast] 404 errors in canonical url for some search pages"

$
0
0

Hi,

This is what i have done now to fix the errors.

The following line

echo '<link rel="canonical" href="' . esc_url( $canonical, null, 'other' ) . '" />' . "\n";

is converted to

echo '<link rel="canonical" href="' . esc_url( urldecode($canonical), null, 'other' ) . '" />' . "\n";

And I have added

$url = urldecode($url);

to the next line of

$url = $this->canonical( false, true );

I am not sure it is a right solution as it touches the core of plugin. Anyway, it works for site.


Viewing all articles
Browse latest Browse all 42467

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>