Skip to content

Build your personal knowledge base with Trilium Notes

fix(client): open the blob stub link with noopener,noreferrer

Elian Doranadbabb1016e9
diff --git a/apps/client/src/widgets/type_widgets/BlobStub.tsx b/apps/client/src/widgets/type_widgets/BlobStub.tsx
index c1c7c49f72..c75174f8f8 100644
--- a/apps/client/src/widgets/type_widgets/BlobStub.tsx
+++ b/apps/client/src/widgets/type_widgets/BlobStub.tsx
@@ -23,7 +23,7 @@ export default function BlobStub({ note }: TypeWidgetProps) {
<Button
kind="primary"
text={t("blob_stub.open_on_server")}
- onClick={() => window.open(url, "_blank")}
+ onClick={() => window.open(url, "_blank", "noopener,noreferrer")}
/>
)}
</NoItems>