Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

removed extra return param in `parse`

Steven Teyf808a72320c6
diff --git a/lib/middleware/utils.ts b/lib/middleware/utils.ts
index 4bf2fed5dd..04fe53ac65 100644
--- a/lib/middleware/utils.ts
+++ b/lib/middleware/utils.ts
@@ -6,7 +6,7 @@ export const parse = (req: NextRequest) => {
if (HOME_HOSTNAMES.has(hostname)) hostname = "dub.sh";
const path = req.nextUrl.pathname;
const key = decodeURIComponent(path.split("/")[1]); // to handle foreign languages like Hebrew
- return { hostname, path, key, query: req.nextUrl.searchParams };
+ return { hostname, path, key };
};
export const detectBot = (req: NextRequest) => {