fix: random 404s (#6138)

* fix: random 404s when navigating from user, org, or collection page to project

* more

* revert server

* clean names

* prepr
This commit is contained in:
Prospector
2026-05-19 11:11:48 -07:00
committed by GitHub
parent f106dc580f
commit 302b60d89c
45 changed files with 127 additions and 123 deletions
@@ -233,7 +233,7 @@ const visibleNags = computed<Nag[]>(() => {
link: {
path: 'moderation',
title: messages.visitModerationPage,
shouldShow: () => props.routeName !== 'type-id-moderation',
shouldShow: () => props.routeName !== 'type-project-moderation',
},
})
}
@@ -739,8 +739,8 @@ async function navigateToNextUnlockedProject(): Promise<boolean> {
} else {
// Fallback: use project ID (will trigger middleware redirect)
navigateTo({
name: 'type-id',
params: { type: 'project', id: next.projectId },
name: 'type-project',
params: { type: 'project', project: next.projectId },
state: { showChecklist: true },
})
}
@@ -1067,8 +1067,8 @@ async function skipToNextProject() {
} else {
// Fallback: use project ID
navigateTo({
name: 'type-id',
params: { type: 'project', id },
name: 'type-project',
params: { type: 'project', project: id },
state: { showChecklist: true },
})
}
@@ -2127,8 +2127,8 @@ async function endChecklist(status?: string) {
} else {
// Fallback: use project ID
navigateTo({
name: 'type-id',
params: { type: 'project', id },
name: 'type-project',
params: { type: 'project', project: id },
state: { showChecklist: true },
})
}