From 534bbb5b621516cb9576c948801566701d5e2ddb Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Thu, 20 Feb 2025 11:01:48 +0100 Subject: [PATCH] Consider hash as part of the path --- src/app/api/send/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/api/send/route.ts b/src/app/api/send/route.ts index 2d220f38c..42cd89865 100644 --- a/src/app/api/send/route.ts +++ b/src/app/api/send/route.ts @@ -133,7 +133,7 @@ export async function POST(request: Request) { const base = hostname ? `https://${hostname}` : 'https://localhost'; const currentUrl = new URL(url, base); - let urlPath = currentUrl.pathname; + let urlPath = currentUrl.pathname + currentUrl.hash; const urlQuery = currentUrl.search.substring(1); const urlDomain = currentUrl.hostname.replace(/^www./, '');