Skip to content

[stable35] fix(links): keep purely numeric link targets as strings - #9557

Merged
mejo- merged 1 commit into
stable35from
backport/9546/stable35
Nov 16, 2026
Merged

mejo- merged 1 commit into
stable35from
backport/9546/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Nov 5, 2026

Copy link
Copy Markdown

Backport of PR #9546

Defining the `href` attribute without a `parseHTML` function makes
Tiptap's default attribute parsing cast numeric-looking strings to
numbers. `isLinkToSelfWithHash` then calls `startsWith` on a number and
the editor fails to open documents with links like
`[test](12345678901234)` or `[[12345678901234|test]]`.

Parse the href with `parseHref` so it always stays a string. This also
restores the rewrite of old file-picker links to `/f/<fileId>`.

Assisted-by: OpenCode:DeepSeek V4.1 Flash
Signed-off-by: upskaling <upskaling@users.noreply.github.com>
@mejo-
mejo- merged commit c0f97f7 into stable35 Nov 16, 2026
63 of 64 checks passed
@mejo-
mejo- deleted the backport/9546/stable35 branch November 16, 2026 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants