You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Relative links between Markdown files open "Page not found" (#2774 not fixed) #9686
Describe the bug
In Text, a link from one Markdown file to another, like [Sub](sub/page.md), doesn't work. Text treats the link as relative to the browser URL, not to the folder the file is in. This looks like #2774, which was closed in May 2026 as "should be fixed nowadays". It still happens. Also see #1668.
To Reproduce
In Files, create Test/links/index.md with [Sub](sub/page.md)
Create Test/links/sub/page.md
Open index.md from Files and click "Sub"
The browser goes to /apps/files/files/sub/page.md and shows "Page not found"
With ./sub/page.md it goes to /apps/files/files/.sub/page.md, which is also broken.
Expected behavior Test/links/sub/page.md opens, as it does on GitHub or in any Markdown viewer.
Links with ?fileId= or a full Files URL do work. But they break when the files are moved or edited outside Nextcloud. Relative links are what notes, docs and wikis kept in Files need.
Server details:
Nextcloud version: Nextcloud Hub 26 Summer (35.0.3), on cloud.nextcloud.com
Activity