I have a rather simple documentation project. When I build it locally, everything looks fine. I get canonical_urls like this <link rel="canonical" href="[http://localhost:4000/](view-source:http://localhost:4000/)" />. The built in github, however, results in canonical_urls with a duplicate hostname such as <link rel="canonical" href="[https://jdrupes.org/jdrupes.org/](view-source:https://jdrupes.org/jdrupes.org/)" />.
I have found the template and from this it looks like seo_tag.canonical_url has been set to the wrong value. But I have no idea what could cause this. IMHO It should be set from site.url and I have specified this.
I have a rather simple documentation project. When I build it locally, everything looks fine. I get canonical_urls like this
<link rel="canonical" href="[http://localhost:4000/](view-source:http://localhost:4000/)" />
. The built in github, however, results in canonical_urls with a duplicate hostname such as<link rel="canonical" href="[https://jdrupes.org/jdrupes.org/](view-source:https://jdrupes.org/jdrupes.org/)" />
.I have found the template and from this it looks like
seo_tag.canonical_url
has been set to the wrong value. But I have no idea what could cause this. IMHO It should be set fromsite.url
and I have specified this.