#2525·docmost

Markdown links written through the API are stored as external links, so backlinks never register

Author: kostritsaalexCreated Sep 27, 2026Updated Sep 27, 2026

Docmost 0.95.0, self-hosted Community Edition. All writes through the REST API with format=markdown; the editor was not used.

What happens

A relative page link written in Markdown:

[Some page](/s/infrastructure/p/<slugId>)

is stored as a plain external link mark: internal: false, target: "_blank", rel: "noopener noreferrer nofollow".

The link clicks through correctly, so nothing looks wrong. But the page is not registered as a reference: the backlinks panel on the target stays empty and the backlinks API returns nothing, even for a set of pages that is fully cross-linked.

Wiki syntax [[Some page]] is not converted through the API Markdown path either. It is stored as literal text.

What I expected

A link whose href points at a page in the same workspace to be stored as an internal link, the way the editor stores one created with the @ command, and to show up in backlinks.

Why it matters

For anyone building documentation through the API rather than by typing in the editor, there is currently no writable syntax that produces an internal link. The result is a knowledge base that looks cross-linked while every backlinks view is empty, and the gap stays invisible until someone opens that panel.

Question

Is there an intended API-writable syntax for internal links that I have missed? If not, would you accept href detection against the workspace's own page URLs in the Markdown converter?

Happy to test a patch against 0.95.0.