diff --git a/package.json b/package.json index eb14356c..fbffc919 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ihr-website", - "version": "1.3.5", + "version": "1.3.6", "private": true, "type": "module", "scripts": { diff --git a/src/router/index.js b/src/router/index.js index 870ea10c..d3d5e03b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -132,19 +132,25 @@ const router = createRouter({ }, { path: 'networks/:id?', - redirect: { - name: 'network', - query: { - active: 'monitoring' + redirect: to => { + return { + name: 'network', + query: { + ...to.query, + active: 'monitoring' + } } } }, { path: 'countries/:cc?', - redirect: { - name: 'country', - query: { - active: 'monitoring' + redirect: to => { + return { + name: 'country', + query: { + ...to.query, + active: 'monitoring' + } } } }