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.

Link security fixes

Marcus Farrell36422038fea8
diff --git a/apps/web/ui/guides/guide.tsx b/apps/web/ui/guides/guide.tsx
index 970ed7a9c6..0608f0d404 100644
--- a/apps/web/ui/guides/guide.tsx
+++ b/apps/web/ui/guides/guide.tsx
@@ -67,7 +67,8 @@ export function Guide({ markdown }: { markdown: string }) {
const handleOpenClaude = () => {
const prompt = `Read from ${selectedGuide.url} so I can ask questions about it.`;
const claudeUrl = `https://claude.ai/new?q=${encodeURIComponent(prompt)}`;
- window.open(claudeUrl, '_blank');
+ const win = window.open(claudeUrl, "_blank", "noopener,noreferrer");
+ if (win) win.opener = null;
setOpenDropdown(false);
};
@@ -85,7 +86,7 @@ export function Guide({ markdown }: { markdown: string }) {
</Link>
<div className="flex items-center overflow-hidden rounded-lg border border-neutral-200">
- <Link href={selectedGuide.url} target="_blank">
+ <Link href={selectedGuide.url} target="_blank" rel="noopener noreferrer">
<Button
text="Read full guide"
variant="secondary"