Menu is linking to wrong page? #8487
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi @OzGav,
Yes, this is a problem, because MkDocs generates a static page, there are only HTML files in the output. Second behaviour is that you're using Section indexes, which can be seen with If you want to "reuse pages" in the navigation, each must have a unique path, and be a unique file, but the contents could be dynamically loaded using |
Beta Was this translation helpful? Give feedback.

Hi @OzGav,
you're encountering 2 expected behaviours at once.
Yes, this is a problem, because MkDocs generates a static page, there are only HTML files in the output.
But the navigation object is shared across all pages, and for each page MkDocs adjusts the relative paths to go to the correct file based on location of the page. This is expected behaviour.
Second behaviour is that you're using Section indexes, which can be seen with
Home Assistant Integration: - integration/index.mdIn case of
Server Install and Configureit finds themusic-providers/index.mdand also merges it into the section.If you want to "reu…