We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c2fadd commit 5939f37Copy full SHA for 5939f37
packages/app/src/router.ts
@@ -11,11 +11,9 @@ const router = createRouter({
11
router.beforeResolve(async (to, from, next) => {
12
const env = useEnv()
13
const user = localStorage?.getItem('visited') || false
14
- const url = window.location.href
15
- const token = url.includes('access_token')
16
const isOnline = useNetwork().isOnline.value
17
18
- if (to.name === 'Landing' && token && !env.isDev()) {
+ if (to.name === 'Landing' && !env.isDev()) {
19
next({ name: 'Main' })
20
21
return
0 commit comments