lemeryfertitta / Climbdex

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

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

Open lemeryfertitta opened 7 months ago

lemeryfertitta commented 7 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.