Possible issue with canonical URL - generated even with option OFF - Google Search exclusion!

Permalink
HI

I have a site where I at some point set the canonical URL. I then decided I didnt want this feature.
However, I am still getting <link type="canonical" "https://mysite/"> output on every single page. This KILLED google search who when indexing my site has marked all the pages as duplicates and excluded them!!

Despite no canonical reference being set in URL Redirection options and the tick box most definitely being OFF the lin is still being generated.

In desperation I commented out the following code from concrete/elements/header_required.php line 120:
if ($config->get('seo.canonical_tag')) {
    if (($canonicalLink = $app->make(SeoCanonical::class)->getPageCanonicalURLTag($c, Request::getInstance())) !== null) {
        $linkTags['canonical'] = (string) $canonicalLink;
    }

Given the above code checks against null I assume something has gone wrong somewhere and the database NOT set back to null.

I am running 8.4.4.

Would be good to fix this properly so I don't have to comment out this code in future updates.
Any ideas whether this is a database issue or a bug that needs to be properly raised?

Cheers
Barry

 
Steevb replied on at Permalink Reply
Steevb
ALL SE's take time to update stuff, it should rectify itself at some point. It is not a C5 issue.
I have site that has been dead for three years, stipped out everything out and yet if you use the right search phrase it STILL shows on the first page?

Have you updated ALL indexing and resubmitted to se's (if you need to)?

Hope helps with the stress and sleepless nights...

Do u have an URL to look at?