openverse-frontend
openverse-frontend copied to clipboard
Filter sidebar is not synced correctly with page navigation causing page jittering when navigating between search and a single result
Description
The filter sidebar pops out in too early when navigating back to search from a single result or it pops out too early when navigating from search to a single result.
This causes the search and single result pages to dramatically layout shift just before the navigation actually happens.
Reproduction
- Go to https://search.openverse.engineering/search/?q=galah and lave the filter sidebar open
- Click on a result and note that the filter sidebar disappears before the single result page ever starts to render
- Click on the "go back to search results" link at the top of the single result page and notice that a) the link immediately disappears and b) the filter sidebar pops in causing everything on the page to shift left before actually navigating back to the search results page.
Screenshots
https://user-images.githubusercontent.com/24264157/191226936-85353331-e7a9-49c5-b6ea-d3c5f7a54e97.mp4
Resolution
- [ ] 🙋 I would be interested in resolving this bug.