diff --git a/apps/remix/app/routes/_share+/share.$slug.tsx b/apps/remix/app/routes/_share+/share.$slug.tsx index e9435b898..bf22e3a6b 100644 --- a/apps/remix/app/routes/_share+/share.$slug.tsx +++ b/apps/remix/app/routes/_share+/share.$slug.tsx @@ -199,6 +199,12 @@ export const loader = async ({ request, params: { slug } }: Route.LoaderArgs) => userAgent: requestMetadata.userAgent, }); + // Unknown/invalid tokens keep the pre-existing public contract of + // redirecting home. Policy denials below render status-coded pages. + if (code === 'QR_VIEW_NOT_FOUND') { + throw redirect('/'); + } + throw createQrShareErrorResponse({ status, code,