← All ideas
0

Docs: Make [[ page links real links instead of inserting the title as plain text

LaunchedDocsFix

Notion inserts a live page mention when you type [[ or @page, which navigates on click, follows renames and creates a backlink (https://www.notion.com/en-gb/help/create-links-and-backlinks). Our onSelectMention in components/docs/DocsEditor.tsx (around line 1362) deletes the [[query and inserts the escaped text "[Page title] ", so nothing is clickable and the feature map's claim that [[ links another page is not true. For a small team wiki, cross-linking pages is the core navigation pattern, and today every link silently becomes dead text. First scope: insert an anchor via wrapLink with href /app/docs/<id> (or a data-page-id mention element allowed by the sanitizer), render it as a page chip with icon, and resolve the current title on render so renames do not break it. Priority: high. Effort: S. Compared with Notion.

Comments 0

No comments yet.