Repository navigation
Open same-origin links in the same tab #3272
virgile-dev
started this conversation in
Ideas & Enhancements
Replies: 1 comment
|
Since we stumbled on this problem when we integrated link to blocks. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem to solve
In order to move between documents and sections of an app built on BlockNote, users need internal links to behave like in-app navigation. Today, clicking a link in the editor opens it in a new tab, even when it points to the same app. Linking to another block in the same document or to another document opens a new tab every time. Users lose their place and end up with many tabs.
Out of scope
resolveLink/onLinkClickcallback) rather than guess.Implementation
TBD. Possible lead: add a base URL option and a link click handler to the editor, falling back to
target="_blank"when the handler does not take the link over.All reactions