summaryrefslogtreecommitdiffstats
path: root/public/javascripts
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2019-12-09 12:38:32 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2019-12-09 12:38:32 +0000
commitdb8cccc2219f1e7403aa57608015562fd8001664 (patch)
tree7e819270f5a6cf7bf3b90a13e5a4495b8eba8e37 /public/javascripts
parenta08977176b52e7210b6392ee8dfc7176e5970731 (diff)
downloadredmine-db8cccc2219f1e7403aa57608015562fd8001664.tar.gz
redmine-db8cccc2219f1e7403aa57608015562fd8001664.zip
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
Diffstat (limited to 'public/javascripts')
-rw-r--r--public/javascripts/application.js2
1 files changed, 1 insertions, 1 deletions
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);
}
}