Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: always open announcement link in browser on desktop app

Abdullah Atta1c888bd4fd17
diff --git a/apps/web/src/components/announcements/body.jsx b/apps/web/src/components/announcements/body.jsx
index 763076868..65895e414 100644
--- a/apps/web/src/components/announcements/body.jsx
+++ b/apps/web/src/components/announcements/body.jsx
@@ -291,7 +291,9 @@ function CalltoAction({ action, variant, sx, dismissAnnouncement }) {
case "link": {
const url = new URL(action.data);
const target =
- url.origin === window.location.origin ? "_self" : "_blank";
+ url.origin === window.location.origin && !IS_DESKTOP_APP
+ ? "_self"
+ : "_blank";
window.open(action.data, target, "noopener noreferrer");
break;
}