stract icon indicating copy to clipboard operation
stract copied to clipboard

Old value of safe-search used when going back to "Search"

Open oeb25 opened this issue 2 years ago • 1 comments

If one goes to the settings after performing a search, toggles safe-search, and then goes back to /search, then ?ss= is still set to the old value. However, any new search correctly uses the new value of safe-search.

This is in line what we expect when storing the query in sessions storage, but perhaps some parts of url.search should not be synced.

What are your thoughts on this?

oeb25 avatar Sep 27 '23 13:09 oeb25

That's a very good point. It would also cause confusion if the user deletes a site from liked or disliked sites, but the old sr is used. I think we should probably only sync the q, gl and optic parameters and build the rest from localstorage.

mikkeldenker avatar Sep 28 '23 08:09 mikkeldenker