diff --git a/app/components/Editor/Editor.js b/app/components/Editor/Editor.js index 4fa087693..139bcbe7d 100644 --- a/app/components/Editor/Editor.js +++ b/app/components/Editor/Editor.js @@ -52,7 +52,11 @@ class Editor extends React.Component { } } - this.redirectTo = navigateTo; + // protect against redirecting back to the same place + const currentLocation = window.location.pathname + window.location.hash; + if (currentLocation !== navigateTo) { + this.redirectTo = navigateTo; + } } else { window.open(href, '_blank'); }