We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66f9c9e commit 75eb5aaCopy full SHA for 75eb5aa
report-viewer/report-viewer/src/router.ts
@@ -96,7 +96,7 @@ router.onError((error) => {
96
// preserve query parameters
97
router.beforeEach((to, from, next) => {
98
// Only add the old query if the target has none defined, this prevents an infinite redirect loop
99
- if (Object.keys(to.query).length == 0 && Object.keys(from.query).length >= 0) {
+ if (Object.keys(to.query).length == 0 && Object.keys(from.query).length > 0) {
100
next({ ...to, query: from.query })
101
} else {
102
next()
0 commit comments