Skip to content

Commit

Permalink
Fix old routes (#799)
Browse files Browse the repository at this point in the history
* Fix routes from old site

* Increase package name
  • Loading branch information
dpgiakatos authored May 23, 2024
1 parent 69f39ab commit db09c03
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ihr-website",
"version": "1.3.5",
"version": "1.3.6",
"private": true,
"type": "module",
"scripts": {
Expand Down
22 changes: 14 additions & 8 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}
}
}
Expand Down

0 comments on commit db09c03

Please sign in to comment.