I use the Polylang plugin. The problem is only on the homepage.
I removed the function in your plugin in the CanonicalUrl.php file
private function get_home_value() {
return home_url( ‘/’ );
}
Now
site.com – link rel=”canonical” href=site.com/
site.com/es/ – link rel=”canonical” href=site.com/
site.com/de/ – link rel=”canonical” href=site.com/
Need
site.com/ – link rel=”canonical” href=site.com/
site.com/es/ – link rel=”canonical” href=site.com/es/
site.com/de/ – link rel=”canonical” href=site.com/de/
-
This reply was modified 2 years ago by vovremya.