Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Svelte: encode path components in file header#63695

Merged
camdencheek merged 1 commit into
mainfrom
cc/encode-path-components
Jul 8, 2024
Merged

Svelte: encode path components in file header#63695
camdencheek merged 1 commit into
mainfrom
cc/encode-path-components

Conversation

@camdencheek

@camdencheek camdencheek commented Jul 8, 2024

Copy link
Copy Markdown
Member

While adding a file with a bunch of special characters in its name to sgtest/weird, I noticed that clicking a link to the file is broken.

This URI-encodes the path components so following the link does not yield a 404.

Test plan

Quick manual test that I can click the file name in the header and it goes to the right place.

@cla-bot cla-bot Bot added the cla-signed label Jul 8, 2024
@fkling

fkling commented Jul 8, 2024

Copy link
Copy Markdown
Contributor

Do we have to do that for the file tree too? And basically anywhere else where we link to files?

@camdencheek

Copy link
Copy Markdown
Member Author

Yes, probably. The file tree was the specific one that came to mind for me too, but I tested it and it seemed to work fine

@peterguy peterguy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approving to unblock if you want to merge this one and followup with other PRs for other file links.

@camdencheek camdencheek merged commit 31eedfc into main Jul 8, 2024
@camdencheek camdencheek deleted the cc/encode-path-components branch July 8, 2024 22:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants