mirror of
https://github.com/ArthurDanjou/website.git
synced 2026-01-19 14:31:46 +01:00
Working on updating my website
This commit is contained in:
7
src/middleware/redirect.global.ts
Normal file
7
src/middleware/redirect.global.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export default defineNuxtRouteMiddleware((to) => {
|
||||
if (to.path === '/bookmarks' || to.path === 'writing') {
|
||||
return navigateTo('/', {
|
||||
redirectCode: 301,
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user