Skip to content

Can't reference other notes through relative links #1524

Open
@blacklight

Description

@blacklight

Steps to reproduce

  • Create a Markdown file named index.md with e.g. the following content
# Index

- [Topic A](./A.md)
  • Create a file named A.md in the same directory

  • Try and click on the link in index.md

Expected behaviour

The note object linked to A.md should be opened

Actual behaviour

The URL is resolved with respect to the current note ID prefix, so the redirect goes to /apps/notes/note/A.md, which doesn't exist.

This is particularly relevant when using something like e.g. vimwiki (or anything that allows you to manage Wiki-like notes in Markdown format). Relative URLs in these context are usually resolved to file names, but Nextcloud Notes works with internal note IDs instead.

Would it be possible to add an intermediate resolver that checks if the requested URL points to a file indexed as a note, and in that case redirect the user to the right URL?

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestRequests for complete new featuresneeds discussionNeed to clarify if and how we should implement this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions