Force Vue Router 4 afterEach hook
What does this MR do and why?
Force Vue Router 4 afterEach hook
This change ensures the Vue Router 4 afterEach hook runs on
the initial route (and redirects to it).
References
Screenshots or screen recordings
Example URLs:
- https://gdk.test:3000/groups/my-group/-/virtual_registries/container/ (redirected)
- https://gdk.test:3000/groups/my-group/-/virtual_registries/container/registries/ (initial route)
![]() |
How to set up and validate locally
Tests at registries_and_upstreams_spec.rb:98 should pass in both versions of Vue:
gdk config set vite.vue_version 3 && gdk reconfigure && gdk restart vite
bundle exec rspec ee/spec/features/groups/virtual_registries/container/registries_and_upstreams_spec.rb:98
gdk config set vite.vue_version 2 && gdk reconfigure && gdk restart vite
bundle exec rspec ee/spec/features/groups/virtual_registries/container/registries_and_upstreams_spec.rb:98
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Miguel Rincon
