mirror of
https://github.com/ArthurDanjou/website.git
synced 2026-01-14 12:14:42 +01:00
Fix middleware
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
export default defineNuxtRouteMiddleware((to) => {
|
export default defineNuxtRouteMiddleware((to) => {
|
||||||
if (to.path === '/bookmarks' || to.path === 'writing') {
|
if (to.path === '/bookmarks' || to.path === '/writing') {
|
||||||
return navigateTo('/', {
|
return navigateTo('/', {
|
||||||
redirectCode: 301,
|
redirectCode: 301,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user