Commit fc56d2fb authored by Tim Zallmann's avatar Tim Zallmann

Merge branch '32538-url' into 'master'

fix IE11 error from sentry

Closes #32538

See merge request !11586
parents 15af4d56 fe414563
......@@ -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);
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment