lmolteno / nsn

NCEA Standards Navigator
https://www.notion.so/Fast-access-NZQA-d4f21847f9174bc2954bd6a3e8205363
1 stars 1 forks source link

Migrate from URL parameters to differing paths to make it look a bit better. #22

Closed lmolteno closed 3 years ago

lmolteno commented 3 years ago

so from /standard/?num=91902 to /standard/91902 and from /subject/?id=1 to /subject/1

lmolteno commented 3 years ago

This might mean serverside rendering or some serious caddy configuration oof

lmolteno commented 3 years ago

Best to do this earlier rather than later as google has indexed it and stuff. I think I'll try to figure out a caddy method.

lmolteno commented 3 years ago

Oops, Caddy won't work. This is because I interface with the browser's URI value, which means it'll be different than normal, which kinda sucks. Caddy can however redirect me to /subject/ from /subject/41, then the /subject/ JS can access the 41 from the path and decide what to do with that.