Relative links to other .md documents

Hi, I’m from a game dev studio that are trying to use Nextcloud for our project management.

Collectives is an app with great potential and could become an essential part of our workflow.

But we have an issue that greatly reduces its usefulness.
Consider a markdown document with the following content:

![An image](pictures/image.png)
Link to [document](document.md)

The image is displayed just fine.
Clicking the link to document does nothing.

Right clicking and opening the link in a new tab reveals that it tries to open a nonexisting https://redacted.redacted.com/apps/collectives/redacted/redacted/document.md

The expected result is that relative links to markdown document works.

It works if I use the Collective internal syntax links:

Link to [document](https://redacted.redacted.com/apps/collectives/redacted/redacted/document?fileId=14998)

Not everyone on our team wants to use the web editor. And having a syntax that is internal to the host (Collectives) goes against markdowns strengths. It makes it impossible to for example convert a markdown document to HTML without hassle.

Are there any plans to support plain relative links to markdown documents?

Versions: Collectives 2.3.0, Text 3.6.0, Nextcloud 25.0.3

I think the real problem is that you can not access directly a file like document.md with an Nextcloud url. You always need the fileId. You can see this with browsing in Nextcloud Files. For internal links you maybe use the external url https://cloud.server.tld/f/fileid. But i think you can not use the path / name.

Also there is an app Sharing Path (not Nextcloud 25). But i think this app can also not solve your problem.

Also there is an app ShareRenamer. But i think this app can also not solve your problem.

Thanks for the info.

I was worried it was something like this.

However, since ![An image](pictures/image.png) works fine, clearly the app responsible for displaying Markdown is able to resolve paths.

Why doesn’t the app do the same for relative .md links?

Not only is this entirely inconsistent, but it makes standard markdown files simply broken inside Nextcloud.

I also don’t understand why this is and why it doesn’t seem to bother anyone. I would also like to have a toggle between markdown view and markdown source code (text version) in the markdown editor. Nobody else seems to miss such a simple feature except me.

I don’t want to be misunderstood. Nextcloud Text is really great and I really don’t want to miss it. The same is certainly true for Collectives.

I couldn’t agree more.

We constantly viewing markdown files. Editing is a much less common event, so it feels very uncomfortable that the edit mode is forced at all times. Not to mention how the edit mode forces a modification, regardless of whether any modifications actually happen.

The Text app is great, but there are some rough edges and design choices I don’t understand.