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.

add special case for root domain links

Steven Tey7547a83ae00a
diff --git a/packages/utils/src/functions/keys.ts b/packages/utils/src/functions/keys.ts
index 4bf5ddad21..858980aa90 100644
--- a/packages/utils/src/functions/keys.ts
+++ b/packages/utils/src/functions/keys.ts
@@ -4,6 +4,10 @@ export const validKeyRegex = new RegExp(
);
export const isUnsupportedKey = (key: string) => {
+ // special case for root domain links
+ if (key === "_root") {
+ return false;
+ }
const excludedPrefix = [".well-known", "_"];
const excludedSuffix = [".php", ".php7"];
return (