refactor: move flags into settings, change icon (#5678)
* refactor: move flags into settings, change icon * fix: use ButtonStyled for app
This commit is contained in:
6
apps/frontend/src/middleware/flags-redirect.global.ts
Normal file
6
apps/frontend/src/middleware/flags-redirect.global.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export default defineNuxtRouteMiddleware((to) => {
|
||||
if (to.path.startsWith('/flags')) {
|
||||
const target = to.fullPath.replace('/flags', '/settings/flags')
|
||||
return navigateTo(target, { redirectCode: 301 })
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user