Skip to content

Instant loading and the project plugin language switcher don't work together #6582

@janban-outlook

Description

@janban-outlook

Context

No response

Bug description

As soon as instant loading is added to a project, the navigation loses its way and ends up in 404 errors. I discovered this while using the language switcher, but I am not sure if it is related to the switcher, or if it is a general issue with the instant loading feature.

Related links

Reproduction

example.zip

Steps to reproduce

  1. run the project (I use ./run.txt)
  2. observe that the website starts, showing the English Home page
  3. click on 'Test' in the menu
  4. the Test page is displayed, but in the background, it is already failing, see the log:
INFO    -  [14:56:55] Serving on http://0.0.0.0:8000/
INFO    -  [14:57:18] Browser connected: http://localhost:8000/en/
WARNING -  [14:57:21] "GET /en/de/sitemap.xml HTTP/1.1" code 404
WARNING -  [14:57:21] "GET /en/test/sitemap.xml HTTP/1.1" code 404
  1. switch to German using the language switcher, resulting in a 404 error.

When instant loading is removed from the mkdocs.yml files, then everything works properly.

Browser

No response

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions