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.

use hostname as url

Steven Tey8857da670dc2
diff --git a/pages/proxy/[domain]/[key].tsx b/pages/proxy/[domain]/[key].tsx
index 71ad41a81d..1657d1c96b 100644
--- a/pages/proxy/[domain]/[key].tsx
+++ b/pages/proxy/[domain]/[key].tsx
@@ -38,9 +38,11 @@ export async function getServerSideProps(ctx) {
};
}
+ const hostname = new URL(url).hostname;
+
return {
props: {
- url,
+ url: hostname,
title,
description,
image,