You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user navigates the search page (scrolls to a particular card, zooms in on a particular location), clicks on a card and then returns to the search page, the search result is reset. It's not a great user experience.
I think the view must be the same as the one displayed before clicking on the card.
1. Activate this feature only with the history manipulation
history refers to the use of the browser's "back" or "forward" buttons.
We need to differentiate between users who want to return to the state of a search result (i.e. click on the "back" button) and those who want to see the full content of the search page (i.e. click on the "search" button).
2. Activate the scrollRestoration browser feature
The scrollRestoration is activated after the user click on the the browser's "back" or "forward" buttons: The location on the page to which the user has scrolled will be restored.
⚠️: The search page contains infinite scrolling, so it is necessary to take into account the “current” page consulted to restore scrolling at this position. ⚠️: For the moment, the search page scroll bar is defined on the list of cards, and should be moved to the body's page to process the scrollRestoration.
3. Keep the state of the map and restore it
The last step is to memorize the last user interaction with the search map (i.e saving bounds) to restore it after using history manipulation. And filter the list of card if enableSearchByMap setting is enabled.
The text was updated successfully, but these errors were encountered:
When a user navigates the search page (scrolls to a particular card, zooms in on a particular location), clicks on a card and then returns to the search page, the search result is reset. It's not a great user experience.
I think the view must be the same as the one displayed before clicking on the card.
1. Activate this feature only with the
history
manipulationhistory
refers to the use of the browser's "back" or "forward" buttons.We need to differentiate between users who want to return to the state of a search result (i.e. click on the "back" button) and those who want to see the full content of the search page (i.e. click on the "search" button).
2. Activate the
scrollRestoration
browser featureThe
scrollRestoration
is activated after the user click on the the browser's "back" or "forward" buttons: The location on the page to which the user has scrolled will be restored.body
's page to process thescrollRestoration
.3. Keep the state of the map and restore it
The last step is to memorize the last user interaction with the search map (i.e saving
bounds
) to restore it after usinghistory
manipulation. And filter the list of card ifenableSearchByMap
setting is enabled.The text was updated successfully, but these errors were encountered: