Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author JS Morisset

    (@jsmoriss)

    WPSSO gets the default canonical URL value from WordPress. It sounds like your site structure might be conflicting with the WordPress rewrite rules. What are your WordPress settings for:

    Settings > General > WordPress Address (URL)

    Settings > General > Site Address (URL)

    Settings > Reading > Your homepage displays

    js.

    Plugin Author JS Morisset

    (@jsmoriss)

    Since you can also override the default home URL value, please also provide the value for:

    SSO > General Settings > Site Information (tab) > Site Home URL

    js.

    Plugin Author JS Morisset

    (@jsmoriss)

    FYI, if you can’t fix your site structure or permalink rewrites, then you could edit the https://animassiettes.com/blog/c/aimants/ category, and in the Document SSO metabox > Edit Visibility tab > Canonical URL option, change the default canonical URL value.

    Thread Starter franciscus

    (@franciscus)

    Thank you for your quick reply. I cannot fix this in the category’s Document SSO because I use the category for other (custom) post types as well. I guess I have been too smart ?? when I defined the permalink rewrite rules. But it’s too late to change them now. (Anyway, I have too many categories to fix them all by hand.) So unless there is a filter that I can use to tweak (or suppress?) the canonical URL, I will just live with the complaints from Google Search Console.

    Plugin Author JS Morisset

    (@jsmoriss)

    You could hook the wpsso_canonical_url(?$url, $mod, $add_page?) filter.

    See here https://wpsso.com/docs/plugins/wpsso/notes/developer/the-mod-variable/ for info on the $mod array, which can be very useful. ??

    js.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘search console complains about canonical’ is closed to new replies.