cds-snc / pulse

Archived: [Project has been split out into two components, @ https://github.com/cds-snc/tracker and https://github.com/cds-snc/track-web ] Check whether a Government of Canada domain is adhering to best security practices.
Other
6 stars 1 forks source link

Better routing #81

Closed evadb closed 6 years ago

evadb commented 6 years ago

This PR looks much bigger than it actually is because I added in french placeholder copies of the pages to demo routing.

This PR primarily adds more flexible routing to not double up the English and French routes. Routes now accept a prefix and generate the template path based on the prefix & page id. If the prefix isn't en or fr, the app throws a 404. If the route doesn't exist in general, the app still throws a 404.

Known issues: