Skip Navigation

[Resolved] URL canonical error

This thread is resolved. Here is a description of the problem and solution.

Problem:

I'm receiving reports indicating that the hreflang annotations in my custom post type "corsi" contain URLs that are not canonical. The URLs include parameters such as https://example.it/corso/nomecorso?subject=test. I need to set the canonical URL to https://example.it/corso/nomecorso.

Solution:

Toolset doesn't provide direct customization for canonical URLs in the page head. Consider using an SEO plugin that allows setting canonical URLs.

You can get started here:

https://www.hallaminternet.com/avoiding-the-seo-pitfalls-of-url-parameters/

https://clicknathan.com/web-design/wordpress-canonical-urls-done-right/

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Christopher Amirian 8 months, 2 weeks ago.

Assisted by: Christopher Amirian.

Author
Posts
#2686922

Hi,
I created a CPT "corsi." Performing a check I see reports with "URLs that do not use the canonical URL of the page in their hreflang annotation. The hreflang annotation must include only canonical versions of URLs." The format of my link is hidden link. In the URL so there are some parameters. How can I set which canonical URL is hidden link.

Ragards

Thank you

#2687111

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

Toolset doesn't have any way to customise the canonical link in the page head, but you may be able to with an SEO plugin.

I stumbled across this article which you may find helpful (though it doesn't answer the question of how to set the canonical link to include URL parameters): hidden link

This one shows how to though: hidden link

Thanks.