]> source.dussan.org Git - redmine.git/commitdiff
Fixed that URL is replaced with "undefined" in IE11 and Edge (#32529).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 9 Dec 2019 12:38:32 +0000 (12:38 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 9 Dec 2019 12:38:32 +0000 (12:38 +0000)
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@19347 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/application.js

index e125e68b4613bf30ea7549d25c4bf93bbeca24f4..e4e902d9cab65848bdb94e0f2d06f3d25f85b18e 100644 (file)
@@ -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);
   }
 }