feat: Internal document links in LinkPopup with ref:// navigation
Summary
Hey team! I'm not a great developer by any means, but I'm absolutely certain this feature is critically needed for your project. It's a small change, but without it the platform falls significantly behind Notion — it's about internal document links with quick navigation.
Right now you can only insert URL links in the editor, which is really limiting. Together with Claude Code, I implemented the ability to search for internal documents right in the Link popup and jump between them via ref:// links.
I realize this is probably not the cleanest code — I know C# at a decent level but I'm really not familiar with frontend development, especially Svelte and the rest of the stack. Please take a look at this PR, maybe someone on your team can quickly refactor it and integrate it into production. This feature is incredibly important for building an internal wiki from Documents. I honestly don't know why this hasn't been implemented yet, but it would be amazing if you could finish this up.
Changes
- LinkPopup.svelte: Search internal documents by title (using
findAllwithdocument.class.Document) instead of only accepting URLs. Selecting a document generates aref://link - linkKeymap.ts: Handle
ref://link clicks — navigate internally instead of opening a new tab - common-kit.ts: Register
ref://as a valid protocol in TipTap Link extension - package.json: Add
@hcengineering/documentdependency to text-editor-resources
Test plan
- [ ] Open any document, select text, press the Link button (or Ctrl+K)
- [ ] Type a document name — verify only Documents appear (no tasks, cards, templates)
- [ ] Click a search result — verify it inserts a
ref://link - [ ] Click the inserted link — verify it navigates to the document internally without opening a new tab
- [ ] Verify regular URL links still work as before
🤖 Generated with Claude Code
Connected to Huly®: UBERF-15899
Hi @PabloSergi ,
Thanks for the contribution.
The build is failed at the moment: CI / build (pull_request) .
Could you try to perform rush update and commit updated lock file?