Skip to content

fix deep links not working in markdown#6907

Merged
zanesq merged 3 commits intomainfrom
zane/deeplink-rendering
Feb 3, 2026
Merged

fix deep links not working in markdown#6907
zanesq merged 3 commits intomainfrom
zane/deeplink-rendering

Conversation

@zanesq
Copy link
Collaborator

@zanesq zanesq commented Feb 3, 2026

Summary

Clicking a deeplink in markdown was opening a blank window and not working

ReactMarkdown's default urlTransform only allows http, https, mailto, irc, ircs, and xmpp protocols.
All other protocols (like spotify:, vscode:, slack:) were being stripped to empty strings.

Also added security checks now that we are overwriting the default rendering for the links. Known safe protocols are rendered and allowed. Unknown protocols pop a warning confirmation first. Risky ones are not rendered and blocked.

Verified working now with deeplinks in markdown and regular links as before.

Screenshot 2026-02-02 at 3 10 13 PM

Copy link
Collaborator

@michaelneale michaelneale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice - seems thorough. @zanesq how did you make the list of safe ones?

@zanesq
Copy link
Collaborator Author

zanesq commented Feb 3, 2026

I just asked goose for the most common deeplinks, obviously cant get them all but its a good start I think. Can always add more later if needed and if not recognized it will prompt the user to open it.

Copy link

@alec-manabat alec-manabat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@zanesq zanesq added this pull request to the merge queue Feb 3, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Feb 3, 2026
@zanesq zanesq merged commit 5c259e0 into main Feb 3, 2026
17 checks passed
@zanesq zanesq deleted the zane/deeplink-rendering branch February 3, 2026 15:51
stebbins pushed a commit to stebbins/goose that referenced this pull request Feb 4, 2026
Signed-off-by: Harrison <hcstebbins@gmail.com>
kuccello pushed a commit to kuccello/goose that referenced this pull request Feb 7, 2026
Tyler-Hardin pushed a commit to Tyler-Hardin/goose that referenced this pull request Feb 11, 2026
Tyler-Hardin pushed a commit to Tyler-Hardin/goose that referenced this pull request Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants