CouncilDataProject / seattle_v2

Website for interacting with Seattle's instance of CDP
https://councildataproject.github.io/seattle
BSD 3-Clause "New" or "Revised" License
5 stars 6 forks source link

Make search queries replace spaces with + or %20 #41

Closed evamaxfield closed 4 years ago

evamaxfield commented 4 years ago

URL encoding standards are to replace spaces with a + or %20. Currently when search queries include multiple words they produce broken URLs which cant be shared properly.

https://councildataproject.github.io/seattle/#/search?q=green new deal

Should be either:

https://councildataproject.github.io/seattle/#/search?q=green+new+deal https://councildataproject.github.io/seattle/#/search?q=green%20new%20deal

I personally prefer the + but doesn't really matter imo.

tohuynh commented 4 years ago

URL encoding standards are to replace spaces with a + or %20. Currently when search queries include multiple words they produce broken URLs which cant be shared properly.

https://councildataproject.github.io/seattle/#/search?q=green new deal

Should be either:

https://councildataproject.github.io/seattle/#/search?q=green+new+deal https://councildataproject.github.io/seattle/#/search?q=green%20new%20deal

I personally prefer the + but doesn't really matter imo.

For me, on Chrome, %20 is added. But on Firefox, it doesn't get added. I will add in the '+' to the URLs