Skip to content

Relative links between Markdown files open "Page not found" (#2774 not fixed) #9686

Backlog

Description

@funana777

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

  1. In Files, create Test/links/index.md with [Sub](sub/page.md)
  2. Create Test/links/sub/page.md
  3. Open index.md from Files and click "Sub"
  4. 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

Client details:

  • OS: Ubuntu 22.04.5 LTS
  • Browser: Floorp 12.21.1 (Firefox 159.0.1)
  • Device: desktop

Please add to #3327.


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions