From 25b0ad2f19b10a0493e5721ed2fef7ee48a96998 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 14 Dec 2022 20:57:15 +0000 Subject: [PATCH] fix: only short circuit on account pages --- middleware/permalink.global.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/permalink.global.ts b/middleware/permalink.global.ts index a8e27956..167d0cc2 100644 --- a/middleware/permalink.global.ts +++ b/middleware/permalink.global.ts @@ -38,7 +38,7 @@ export default defineNuxtRouteMiddleware(async (to, from) => { try { // If we're already on an account page, we can search for this on the new instance - if (to.params.account && to.params.account.includes('@')) { + if (to.params.account && to.name !== 'status' && to.params.account.includes('@')) { const account = await fetchAccountByHandle(to.params.account as string) if (account) return getAccountRoute(account)