fix: handle permalinks with app shell (#468)

This commit is contained in:
Daniel Roe 2022-12-20 08:20:40 +00:00 committed by GitHub
parent f8ebc0e99a
commit 8de1c95fd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 3 deletions

View file

@ -85,7 +85,7 @@ export async function loginTo(user?: Omit<UserLogin, 'account'> & { account?: Ac
}
}
if ('server' in route.params && user?.token) {
if ('server' in route.params && user?.token && !useNuxtApp()._processingMiddleware) {
await router.push({
...route,
force: true,