Merge branch '32538-url' into 'master'

fix IE11 error from sentry

Closes #32538

See merge request !11586
This commit is contained in:
Tim Zallmann 2017-06-02 07:48:41 +00:00
commit fc56d2fbaa
1 changed files with 2 additions and 1 deletions

View File

@ -66,7 +66,8 @@ w.gl.utils.removeParamQueryString = function(url, param) {
})()).join('&');
};
w.gl.utils.removeParams = (params) => {
const url = new URL(window.location.href);
const url = document.createElement('a');
url.href = window.location.href;
params.forEach((param) => {
url.search = w.gl.utils.removeParamQueryString(url.search, param);
});