lemeryfertitta / Climbdex

Search engine for training board climbs
https://climbdex.com
MIT License
42 stars 10 forks source link

Cleanup params in back link when not using history.back() #66

Open lemeryfertitta opened 3 months ago

lemeryfertitta commented 3 months ago

Discussed in https://github.com/lemeryfertitta/Climbdex/pull/65#discussion_r1591566011

When using the "back to filter selection" link in the case where history.back is not used (e.g. a shared search result) we populate the filter page URL with all of the current params. Most of these params are invalid for that URL, so we should likely just trim this to contain only the relevant params.

This is only a small cosmetic cleanup, so probably not a super high priority, but should be an easy fix.