16colo-rs / 16c

16colo.rs ANSI/ASCII Archive
5 stars 1 forks source link

Links to artist names with spaces don't work #86

Closed Kirkman closed 1 year ago

Kirkman commented 1 year ago

While browsing artwork, I tried clicking on some artist's name tags, and the links didn't work because of spaces in the name.

For example, looking at a piece by Black Guard, I clicked the name tag:

Screen Shot 2023-04-04 at 8 28 31 AM

The URL in this name tag is https://16colo.rs/artist/black+guard. When I click it, I get the following error messages:

Errors:
* invalid input
* artist not found

Screen Shot 2023-04-04 at 8 31 35 AM

However, if I edit that URL manually and change the + to a URL-encoded space (%20), then it works: https://16colo.rs/artist/black%20guard

I imagine this is related to issue #85, and I wonder if there are any other spots in the code that might still have similar issues.