add redirects for keymaster for those coming from search engines with old data.

This commit is contained in:
Starystars67
2026-06-17 12:33:50 +01:00
parent 6b584bdfbf
commit 847bcf9bac
4 changed files with 25 additions and 3 deletions
+6
View File
@@ -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 / {
+2 -2
View File
@@ -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
View File
@@ -1,7 +1,7 @@
{
"name": "beammp-website",
"private": true,
"version": "2.5.1",
"version": "2.5.2",
"type": "module",
"scripts": {
"dev": "vite",
+16
View File
@@ -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 = [