From 62541f81b2aca2d490295c5aae38f7fa05c12603 Mon Sep 17 00:00:00 2001 From: ephraimduncan Date: Thu, 2 Jul 2026 15:58:26 +0000 Subject: [PATCH] fix(share): redirect unknown qr share tokens home instead of 404 --- apps/remix/app/routes/_share+/share.$slug.tsx | 6 ++++++ 1 file changed, 6 insertions(+) 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,