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.

Fixed metatags copied URL discrepancy bug

Steven Tey5a816c7a9073
diff --git a/pages/metatags.tsx b/pages/metatags.tsx
index b0542e68a9..f650178980 100644
--- a/pages/metatags.tsx
+++ b/pages/metatags.tsx
@@ -132,7 +132,7 @@ export default function Metatags({ tweets }: { tweets: any }) {
className="hover:bg/black-[0.08] group relative flex cursor-copy items-center space-x-5 rounded-full bg-black/5 py-2.5 pr-3 pl-5 transition-all"
onClick={() => {
navigator.clipboard.writeText(
- `https://api.dub.sh/metatags?url=${url}`,
+ `https://api.dub.sh/metatags?url=${getUrlFromString(url)}`,
);
setCopied(true);
setTimeout(() => {