mirror of
https://github.com/BeamMP/BeamMP-Website.git
synced 2026-07-12 17:54:09 +00:00
add redirects for keymaster for those coming from search engines with old data.
This commit is contained in:
@@ -39,6 +39,12 @@ server {
|
||||
access_log off;
|
||||
}
|
||||
|
||||
# Legacy Keymaster paths moved permanently to the dedicated domain.
|
||||
# Match both localized and non-localized URLs.
|
||||
location ~* ^/(?:[a-z]{2}/)?(?:keymaster|k/dashboard)/?$ {
|
||||
return 301 https://keymaster.beammp.com/;
|
||||
}
|
||||
|
||||
# SPA fallback: all other paths go to index.html so Vue Router can render the
|
||||
# correct view (including the NotFound page for unknown routes).
|
||||
location / {
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "beammp-website",
|
||||
"version": "2.5.1",
|
||||
"version": "2.5.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "beammp-website",
|
||||
"version": "2.5.1",
|
||||
"version": "2.5.2",
|
||||
"dependencies": {
|
||||
"@tailwindcss/typography": "^0.5.20",
|
||||
"@tailwindcss/vite": "^4.1.17",
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "beammp-website",
|
||||
"private": true,
|
||||
"version": "2.5.1",
|
||||
"version": "2.5.2",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -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