olin-build / abe-web

Web Calendar front-end to ABE (Amorphous Blob of Events)
https://events.olin.build/
MIT License
5 stars 4 forks source link

Back button directs you forward #210

Open frackleton opened 6 years ago

frackleton commented 6 years ago

When you nav to events.olin.build, you are forward directed to http://events.olin.build/calendar/academic,burstthebubble,featured,food,holidays,StAR (or whatever tag). Clicking the back button, in theory, takes you to events.olin.build, which directs you forward to http://events.olin.build/calendar/academic,burstthebubble,featured,food,holidays,StAR.

You can't truly go "back"

kylecombes commented 3 years ago

This could probably be resolved by using useQueryParams instead of always pushing new URLs using React Router's push function (see our code here and here).