From 81fd986881d3a55acdfc9065de4a3ef96a496a2a Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Mon, 10 Aug 2020 18:09:33 -0400 Subject: [PATCH] forum/components/Notification: Support external links --- js/src/forum/components/Notification.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/src/forum/components/Notification.js b/js/src/forum/components/Notification.js index 78ea1f750..e011635fb 100644 --- a/js/src/forum/components/Notification.js +++ b/js/src/forum/components/Notification.js @@ -19,10 +19,13 @@ export default class Notification extends Component { const notification = this.attrs.notification; const href = this.href(); + const linkAttrs = {}; + linkAttrs[href.indexOf('://') === -1 ? 'route' : 'href'] = href; + return ( {!notification.isRead() &&