Nodsoft / MoltenObsidian

Obsidian-flavoured Markdown parsing library for .NET 6+, with support for Obsidian Vaults navigation.
https://moltenobsidian.dev
MIT License
61 stars 2 forks source link

Astro: Broken folder index pages navigation #44

Closed SakuraIsayeki closed 3 months ago

SakuraIsayeki commented 3 months ago

Problem

On the MoltenObsidian website, any navigation leading to folder index pages (present as index.md or README.md in filesystem) is broken. This most notably affect navigation via [[My/Link]]-style internal links.

Expected

Links are expected to redirect the user to the folder index page.

Current

Links redirection is broken, and leads the user to a 404 page, unless routing rules are applied as workaround on the web server.

Solution

Either a flag should be implemented on the SSG feature to trim the leading /[index|readme]$ in redirect URI, or a special redirection case should be implemented on the current Astro website. Preferrably a SSG flag, given the broader use cases.