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.

fixes

Steven Tey2da7dd9f596f
diff --git a/apps/web/ui/modals/link-builder/link-preview.tsx b/apps/web/ui/modals/link-builder/link-preview.tsx
index 795a0040d8..8963638ef6 100644
--- a/apps/web/ui/modals/link-builder/link-preview.tsx
+++ b/apps/web/ui/modals/link-builder/link-preview.tsx
@@ -108,6 +108,7 @@ export function LinkPreview() {
title="Customize how your links look when shared on social media to improve click-through rates. When enabled, the preview settings below will be shown publicly (instead of the URL's original metatags)."
cta="Learn more"
href="https://dub.co/help/article/custom-link-previews"
+ target="_blank"
/>
}
/>
diff --git a/apps/web/ui/modals/link-builder/og-modal.tsx b/apps/web/ui/modals/link-builder/og-modal.tsx
index 71180d6535..1819770032 100644
--- a/apps/web/ui/modals/link-builder/og-modal.tsx
+++ b/apps/web/ui/modals/link-builder/og-modal.tsx
@@ -226,6 +226,7 @@ function OGModalInner({
title="Customize how your links look when shared on social media to improve click-through rates. When enabled, the preview settings below will be shown publicly (instead of the URL's original metatags)."
cta="Learn more"
href="https://dub.co/help/article/custom-link-previews"
+ target="_blank"
/>
}
/>
diff --git a/apps/web/ui/modals/link-builder/use-metatags.ts b/apps/web/ui/modals/link-builder/use-metatags.ts
index 498158ea09..a059bc5f9a 100644
--- a/apps/web/ui/modals/link-builder/use-metatags.ts
+++ b/apps/web/ui/modals/link-builder/use-metatags.ts
@@ -26,7 +26,7 @@ export function useMetatags({
useEffect(() => {
// no need to generate metatags if proxy is enabled, or if any of the metatags are set
- if (proxy || title || description || image) {
+ if (proxy) {
setGeneratingMetatags(false);
return;
}
@@ -68,7 +68,7 @@ export function useMetatags({
} else {
setGeneratingMetatags(false);
}
- }, [debouncedUrl, password, proxy, title, description, image, enabled]);
+ }, [debouncedUrl, password, proxy, enabled]);
return { generatingMetatags };
}