Clicking back after registry search does not refetch results
Issue
Clicking the back button after searching/paginating within package registry & container registry does not refetch results first time.
Example from Package registry:
Screen_Recording_2023-08-29_at_5.12.16_pm
Investigation
persisted_search
updates the URLs via url-sync
. It updates the URL but does not give a way to handle popstate
events (when using browser Back
& Forward
buttons)
This is also reproducible in other pages where url-sync
is used for example: https://gitlab.com/gitlab-org/gitlab/-/analytics/merge_request_analytics
Possible solution(s)
- Check if
url-sync
can be updated to handlepopstate
changes - Use vue-router
$router.push
instead ofurl-sync
inpersisted_search.vue
Edited by Rahul Chanila