Skip to content

Unusual navigation behavior when using insiders with static-i18n plugin #7060

@NeilHanlon

Description

@NeilHanlon

Context

https://github.com/rocky-linux/docs.rockylinux.org/ (mkdocs config)
https://github.com/rocky-linux/documentation/ (content)

Multiple languages supported and translated

Bug description

When using mkdocs-material-insiders with mkdocs-static-i18n plugin, there is nondeterministic behavior when navigating to a path which starts with an ISO 3166 country code.

For example, given a path /desktop/ which has other folders/files underneath it--navigating to this link by clicking on the link in the Nav bar from the index sends the user to /de/ (the index for our German translation), instead of to the /desktop/ page in english. Navigating to the /desktop/ page directly, or from any other page, is seemingly unaffected. Reverting to mkdocs-material (not insiders) causes this behavior to not reproduce.

Related links

n/a

Reproduction

9.5.18+insiders.4.53.6-nondeterministic-navigation-with-i18n.zip

Steps to reproduce

  1. From the index page of the reproducer, navigate to the index page for the 'Desktop' category
  2. URL will change to /de/ instead of /desktop/ - future navigation is now in German

Browser

No response

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open🏆 perfectIssue is of outstanding quality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions