From 7bee60a3375c68e3a4e0adc6a10a332ef18272da Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 19 Oct 2020 08:00:52 -0700 Subject: [PATCH] fix: Clicking link with blank href should not open new tab --- app/components/Editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/Editor.js b/app/components/Editor.js index fee8c63b..ef998c10 100644 --- a/app/components/Editor.js +++ b/app/components/Editor.js @@ -56,7 +56,7 @@ class Editor extends React.Component { } this.props.history.push(navigateTo); - } else { + } else if (href) { window.open(href, "_blank"); } };