Fix URL reconstruction

pull/223/head
Lennart Kats 2015-11-30 09:06:23 +00:00
rodzic a80297b6eb
commit 15108e44cd
1 zmienionych plików z 3 dodań i 4 usunięć

Wyświetl plik

@ -667,9 +667,8 @@ define(function(require, exports, module) {
function reload(name) {
showReloadTip();
var href = document.location.href.replace(/[?&]reload=[^&]+/, "")
+ (document.location.href.match(/\?/) ? "&" : "?")
+ "reload=" + name;
var href = document.location.href.replace(/[?&]reload=[^&]+/, "");
href += (href.match(/\?/) ? "&" : "?") + "reload=" + name;
window.history.replaceState(window.history.state, null, href);
for (var plugin in architect.lut) {