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
@@ -1,7 +1,7 @@
<template>
<ReportView
:auth="auth"
:report-id="route.params.id"
:report-id="reportId"
:breadcrumbs-stack="[
{ href: '/dashboard/reports', label: formatMessage(messages.activeReportsTitle) },
]"
@@ -25,10 +25,10 @@ const messages = defineMessages({
},
})
const route = useNativeRoute()
const auth = await useAuth()
const reportId = useRouteId('report')
useHead({
title: () => `${formatMessage(messages.reportTitle, { id: route.params.id })} - Modrinth`,
title: () => `${formatMessage(messages.reportTitle, { id: reportId })} - Modrinth`,
})
</script>