beforeRouteLeave not called after $router.replace to same component - Get Help - Vue Forum
Complete Vue Router 4 Guide: Basics, Programmatic Routing, Navigation Guards, Transition Effects and Composition API | by OnlyKiosk Dev Tech | Level Up Coding
vue.js - Quickly calling this.$router.replace in a row causes race condition - Stack Overflow