Skip to content

site_url takes not effect on canonical url when running in K8s #4066

@fritzduchardt

Description

@fritzduchardt

I am running mkdocs on K8s at version 1.6.1.

The canonical url rendered in the HTML output looks like this: <link rel="canonical" href="http://0.0.0.0:8000/index.html" />

My mkdocs.yaml looks like this:

site_name: Yummy Stuff
site_url: "https://mydomain.de/"

theme:
  name: readthedocs
docs_dir: docs

copyright: ""
use_directory_urls: false

strict: true

I am starting mkdocs like this:

mkdocs server --dev-addr "0.0.0.0:8000"
I expect the canonical url to be the value from the site_url.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions