mirror of
https://github.com/BeamMP/BeamMP-Website.git
synced 2026-07-22 14:40:51 +00:00
add redirects for keymaster for those coming from search engines with old data.
This commit is contained in:
@@ -86,6 +86,22 @@ const baseRoutes = [
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
|
||||
// Redirect route for old keymaster
|
||||
{
|
||||
path: 'keymaster',
|
||||
redirect: (to) => {
|
||||
window.location.replace('https://keymaster.beammp.com/')
|
||||
return `/${to.params.locale || 'en'}`
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'k/dashboard',
|
||||
redirect: (to) => {
|
||||
window.location.replace('https://keymaster.beammp.com/')
|
||||
return `/${to.params.locale || 'en'}`
|
||||
},
|
||||
},
|
||||
]
|
||||
|
||||
const routes = [
|
||||
|
||||
Reference in New Issue
Block a user