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

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