Clicked URL contains unwanted delimiter #21863

Open
opened 2026-01-31 07:56:52 +00:00 by claunia · 0 comments
Owner

Originally created by @bobvandevijver on GitHub (Jun 13, 2024).

Windows Terminal version

1.20.11381.0

Windows build number

10.0.22631.0

Other Software

My screenshot is a irssi inside a screen over SSH inside WSL Debian, but it happens in any environment.

Steps to reproduce

Have a link wrapped with <> in your terminal, for example in bash:

echo "Some URL: <https://github.com>"

And click the link in the output.

Expected Behavior

The parsed link should not include the > character. Angle brackets are a common URL/IRI delimiter, which is not allowed in IRIs.

Actual Behavior

The opened link will include the > character, which can lead to interesting behaviour. The example above with Github leads me to an empty tab, the example from the screenshot below leads to a 404 (which isn't the case when the > is removed).

Also note that the > isn't actually underlined (which is good), but it is included in the mouseover and when clicked.

image

Originally created by @bobvandevijver on GitHub (Jun 13, 2024). ### Windows Terminal version 1.20.11381.0 ### Windows build number 10.0.22631.0 ### Other Software My screenshot is a irssi inside a screen over SSH inside WSL Debian, but it happens in any environment. ### Steps to reproduce Have a link wrapped with `<>` in your terminal, for example in bash: ``` echo "Some URL: <https://github.com>" ``` And click the link in the output. ### Expected Behavior The parsed link should not include the `>` character. Angle brackets are a [common URL/IRI delimiter](https://datatracker.ietf.org/doc/html/rfc1738#page-3), which is [not allowed in IRIs](https://datatracker.ietf.org/doc/html/rfc3987#page-13). ### Actual Behavior The opened link will include the `>` character, which can lead to interesting behaviour. The example above with Github leads me to an empty tab, the example from the screenshot below leads to a 404 (which isn't the case when the `>` is removed). Also note that the `>` isn't actually underlined (which is good), but it is included in the mouseover and when clicked. ![image](https://github.com/microsoft/terminal/assets/1835343/66aa40b7-aa8e-442d-b946-82fce2210990)
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 07:56:52 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21863