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.

fix link preview bug

Steven Teyeddb12b9a301
diff --git a/apps/web/ui/modals/link-builder/use-metatags.ts b/apps/web/ui/modals/link-builder/use-metatags.ts
index 83984f1352..94ada5d507 100644
--- a/apps/web/ui/modals/link-builder/use-metatags.ts
+++ b/apps/web/ui/modals/link-builder/use-metatags.ts
@@ -38,17 +38,9 @@ export function useMetatags({
}
/**
- * Only generate metatags if:
- * - modal is open
- * - custom OG proxy is not enabled
- * - url is not empty
+ * Only generate metatags if enabled (modal is open and url is not empty)
**/
if (enabled) {
- if (!proxy) {
- setValue("title", null);
- setValue("description", null);
- setValue("image", null);
- }
try {
// if url is valid, continue to generate metatags, else return null
new URL(debouncedUrl);