init
This commit is contained in:
5
app/middleware/redirectFromMainPage.ts
Normal file
5
app/middleware/redirectFromMainPage.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export default defineNuxtRouteMiddleware((to, _from) => {
|
||||
if (to.path === '/') {
|
||||
return navigateTo({name: 'materials' })
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user