From 083f71618434c32544ac1de5f49b3f8392f0d4c9 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 9 Dec 2019 12:39:33 +0000 Subject: [PATCH] Merged r19347 to 4.1-stable (#32529). git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@19348 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- public/javascripts/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.39.5