Webpage and canonical link tag points to different URLs
-
Hello,
I analyzed my page I got this error:Webpage and canonical link tag points to different URLs.
Website url:Url found in the canonical link tag:
I would like to change the canonical URL that is generating by the plugin Yoast. The problem is that I do not see any option that allows me to do this in the settings of the Yoast plugin, and I can not see where I can change the generated code. I have already tried to make this change using the filters but this only caused more problems with the other pages. This problem is only for my home page, all the other pages are OK. I used this filter code to solve the problem:
}
function yoast_seo_canonical_change( $canonical ) {
return ‘https://audioprolabs.com’;
}
add_filter( ‘wpseo_canonical’, ‘yoast_seo_canonical_change’, 10, 1 );The page I need help with: [log in to see the link]
- The topic ‘Webpage and canonical link tag points to different URLs’ is closed to new replies.