WPI-IFC / ifc-website

Custom website for WPI's Inter Fraternity Council
0 stars 0 forks source link

House URLS are case sensitive #2

Open tmwbook opened 6 years ago

tmwbook commented 6 years ago

/house/SIGMAPI 404s while /house/sigmapi does not. We need to make our urls case-insensitive

tmwbook commented 6 years ago

So I think there are two options for this. We can either change the request to all_lower and redirect the response, or we can add cases to any time we are constructing a query based off of the path in the url. I'm leaning more towards redirecting with a 301 to the lowercase version.

tmwbook commented 6 years ago

This may be solved with the "typing" instead of regex of URLs in Django 2.0. If so, we don't need to worry about this too much.