mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
Bugfix: Preserve query params when navigating to same path
This commit is contained in:
parent
49c20b1840
commit
7be040472a
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ router.beforeEach((to, from) => {
|
||||||
// Without this check, modifying any query params will be blocked
|
// Without this check, modifying any query params will be blocked
|
||||||
// Check if redirectedFrom is defined to check if this function has already been run
|
// Check if redirectedFrom is defined to check if this function has already been run
|
||||||
// Without this check, the router will be stuck in an infinite loop
|
// Without this check, the router will be stuck in an infinite loop
|
||||||
if (to.path !== from.path && !to.redirectedFrom) {
|
if (to.fullPath !== from.fullPath && !to.redirectedFrom) {
|
||||||
return {
|
return {
|
||||||
...to,
|
...to,
|
||||||
query: {
|
query: {
|
||||||
|
|
Loading…
Reference in a new issue