The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Merge branch 'main' into feat/utm-tracking
Snazzah612a23b16f7a
diff --cc lib/middleware/utils.tsindex a31cdf083f,b277b4e32a..2a689feedb--- a/lib/middleware/utils.ts+++ b/lib/middleware/utils.ts@@@ -5,8 -5,8 +5,8 @@@ export const parse = (req: NextRequestlet hostname = req.headers.get("host");if (HOME_HOSTNAMES.has(hostname)) hostname = "dub.sh";const path = req.nextUrl.pathname;- const key = path.split("/")[1];+ const key = decodeURIComponent(path.split("/")[1]); // to handle foreign languages like Hebrew- return { hostname, path, key };+ return { hostname, path, key, query: req.nextUrl.searchParams };};export const detectBot = (req: NextRequest) => {