[Bug?]: Zero-width-space character creeping into terminal links, leading to 404 pages #11915
Open
1 task done
Labels
bug/needs-info
More information is needed for reproduction
What's not working?
terminal-link
is still struggling with the old bug from 2022: sindresorhus/terminal-link#18Some terminals, including Windows VSCode built-in are not recognized as supporting terminal links, as a result, a fallback version is printed instead with the link surrounded by
(
)
and the link itself having invisible characters.Similar issues/PRs:
Possible solutions:
terminal-link
. I made a quick drop-in replacement, https://www.npmjs.com/package/termi-link that can be tried if desired.terminalLink
.How do we reproduce the bug?
Run a redwood upgrade script. For instance, after upgrading to Redwood 8.4.4, I'm getting the following link:
❖ GitHub Release notes (https://github.com/redwoodjs/redwood/releases%E2%80%8B)
(those characters are actually invisible in the terminal)Clicking the link to the releases page in the error message takes me to a 404 page due to the URL being malformed, containing a %E2%80%8B character in the end (standing for a zero-width space Unicode character).
What's your environment? (If it applies)
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: