dwbrite / website-rs

what if I purpose-built a webserver in rust just for dwbrite.com?
4 stars 0 forks source link

Some users attempt to go to `/x%2520y%2520z` instead of `/x%20y%20z` #12

Closed dwbrite closed 1 year ago

dwbrite commented 3 years ago

I've a few hundred logs of spaces in URLs being parsed incorrectly by browsers. I should change blog post URLs to use dashes instead of spaces. Following that, it might be a good idea to support and redirect links with spaces, since blog posts have reached a fairly broad audience.

dwbrite commented 1 year ago

This is partially fixed by transforms added in: https://github.com/dwbrite/website-rs/commit/c83d056af2f86879f1bc7956bcc82bb18d22dbe2

By default, all blog-post links will now use dashes instead of spaces, and the blog still maintains support for the original URLs. NOT added is a redirect from malformed URLs caused by shitty reddit clients (@apollo). Won't fix because that would be complicated - I'll just use dashed links from now on.