feat: make internal app URLs permalinks (#329)
This commit is contained in:
parent
4f8f2ed1f1
commit
eb022c92e8
19 changed files with 99 additions and 51 deletions
|
@ -1,6 +1,6 @@
|
|||
export default defineNuxtRouteMiddleware((from) => {
|
||||
export default defineNuxtRouteMiddleware((to) => {
|
||||
if (!currentUser.value)
|
||||
return navigateTo('/public')
|
||||
else if (from.path === '/')
|
||||
if (to.path === '/')
|
||||
return navigateTo('/home')
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue