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.

Strip http(s) from URL

Tim Wilsonef7a96009053
diff --git a/apps/web/ui/links/link-title-column.tsx b/apps/web/ui/links/link-title-column.tsx
index 7f5cfd3642..5bff7cf126 100644
--- a/apps/web/ui/links/link-title-column.tsx
+++ b/apps/web/ui/links/link-title-column.tsx
@@ -88,7 +88,7 @@ function Details({ link, compact }: { link: ResponseLink; compact?: boolean }) {
className={cn("truncate", url ? "text-gray-500" : "text-gray-400")}
title={url}
>
- {url || "No URL configured"}
+ {url?.replace(/^https?:\/\//, "") || "No URL configured"}
</span>
</div>
<div className="hidden shrink-0 sm:block">