From: Jean-Philippe Lang Date: Mon, 9 Dec 2019 12:38:32 +0000 (+0000) Subject: Fixed that URL is replaced with "undefined" in IE11 and Edge (#32529). X-Git-Tag: 4.2.0~1305 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=db8cccc2219f1e7403aa57608015562fd8001664;p=redmine.git Fixed that URL is replaced with "undefined" in IE11 and Edge (#32529). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19347 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/public/javascripts/application.js b/public/javascripts/application.js index e125e68b4..e4e902d9c 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -412,7 +412,7 @@ function getRemoteTab(name, remote_url, url, load_always) { //replaces current URL with the "href" attribute of the current link //(only triggered if supported by browser) function replaceInHistory(url) { - if ("replaceState" in window.history) { + if ("replaceState" in window.history && url !== undefined) { window.history.replaceState(null, document.title, url); } }