[go: up one dir, main page]

Skip to content

Sometimes, duplicate pages occur

In certain cases yet to be debugged, the same rendered file occurs twice; see below image.

Screenshot_2025-02-25_at_13-56-23_Home

Theory

  1. The filename contains square brackets, which may not be properly supported
  2. It's the last on the menu with a sub-document/directory, and this is rendered wonky
  3. It's the last on the menu with as a directory and document with same name (e.g. [Release Notes] and [Release Notes].md), and the directory containing a document
  4. A combination of all three

Approach

I'm going to first test if nr. 3 theory applies, as that seems to be the most probable one. Regardless, I'll check if brackets are an issue in naming, and check if the same occurs with "normally" named directories and documents.

How to reproduce

Have a directory and a document with the same name, and the directory contain a document, something like so:

Documentation/
├─ Sub-Documentation.md
Documentation.md

Then do that again:

Documentation2/
├─ Sub-Documentation2.md
Documentation2.md

The total directory tree should look like this:

Documentation/
├─ Sub-Documentation.md
Documentation.md
Documentation2/
├─ Sub-Documentation2.md
Documentation2.md

The first will fine on IMMS like so:

Documentation
├─ Sub-Documentation.md

Where Documentation is a link to Documentation.md

But the second one will look like this:

Documentation2
├─ Sub-Documentation2
Documentation2

Where the first and second Documentation2 is a link to Documentation2.md.

Expected result:

Documentation
├─ Sub-Documentation
Documentation2
├─ Sub-Documentation2

Actual result:

Documentation
├─ Sub-Documentation
Documentation2
├─ Sub-Documentation2
Documentation2
Edited by Angutivik Casper Rúnur Tausen