remove query string, getUrl() fix

do
Bálint Szekeres 2019-12-13 00:14:12 +01:00
parent 041efa8f86
commit 4e72e291c1
2 changed files with 13 additions and 1 deletions

View File

@ -37,6 +37,7 @@
}]
},
"globals": {
"window": true,
"angular": true,
"gtag": true,
"dataLayer": true,

View File

@ -1,8 +1,19 @@
(function() {
'use strict';
// remove query string
window.history.replaceState(
{},
'',
window.location.href.replace(window.location.search, '')
);
})();
(function() {
'use strict';
angular
.module('NginxConfigIoApp', ['ngSanitize', 'ngclipboard', '720kb.tooltips'])
.config([
@ -625,7 +636,7 @@
};
$scope.getUrl = function() {
return $location.absUrl().replace(/#.*$/, '');
return $location.absUrl();
};
$scope.addSite = function() {