mirror of
https://github.com/elk-zone/elk
synced 2024-11-27 14:28:10 +09:00
fix: only short circuit on account pages
This commit is contained in:
parent
5bd081df49
commit
25b0ad2f19
@ -38,7 +38,7 @@ export default defineNuxtRouteMiddleware(async (to, from) => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// If we're already on an account page, we can search for this on the new instance
|
// 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)
|
const account = await fetchAccountByHandle(to.params.account as string)
|
||||||
if (account)
|
if (account)
|
||||||
return getAccountRoute(account)
|
return getAccountRoute(account)
|
||||||
|
Loading…
Reference in New Issue
Block a user