cds-snc / ircc-rescheduler

🙅🗓
https://vancouver.rescheduler-dev.cds-snc.ca/
MIT License
24 stars 7 forks source link

404 requests to root domain #521

Closed pcraig3 closed 5 years ago

pcraig3 commented 5 years ago

Previously, we had only one location to serve, so we had one root url where people would reschedule.

Once we needed more locations, we introduced the notion of subdomains as the way we would decide on your location.

Since we needed to support people who still had the original URL, we were redirecting all traffic to the root domain to the Vancouver subdomain, since anyone with the original URL would have been coming from Vancouver.

Now, anyone coming to the root URL (rescheduler.cds-snc.ca) gets redirected to a 404 page rather than the Vancouver start page.

Outcome: less logic in the app. Slightly (very slightly) easier to grep all the url-sniffing logic we wrote in serverUtils.