Open
Description
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?