Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: properly escape paths when generating urls #419

Merged
merged 2 commits into from
Jun 21, 2023

Conversation

Gankra
Copy link
Member

@Gankra Gankra commented Jun 21, 2023

also make logo linking properly use link::generate

@Gankra
Copy link
Member Author

Gankra commented Jun 21, 2023

Note that this still leaves a latent ~aesthetic issue of us not unescaping urls when writing them to disk. The problematic URL is

https://cdn.wikirby.com/archive/0/04/20200203000421%21Kirby_JP_Twitter_Icon.png

which should be saved/displayed as

20200203000421!Kirby_JP_Twitter_Icon.png

with this PR we will save/display it as

20200203000421%21Kirby_JP_Twitter_Icon.png

producing a URL of

https://mywebsite.com/20200203000421%2521Kirby_JP_Twitter_Icon.png

(double-escaping it)

@Gankra Gankra merged commit 28154c9 into axodotdev:main Jun 21, 2023
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.

1 participant