diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-06-02 10:48:41 +0300 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-06-02 10:48:41 +0300 |
commit | fc56d2fbaa2a317813c9dd7ba36e584162175fe6 (patch) | |
tree | edfe9db2e7cf23302b2cddf17fc44fbd8a0d4078 /app | |
parent | 15af4d56def76ce3b9855c596aa2d0fc4383ebeb (diff) | |
parent | fe41456393b27cc095f22938488ffa8d837f5482 (diff) |
Merge branch '32538-url' into 'master'
fix IE11 error from sentry
Closes #32538
See merge request !11586
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/lib/utils/url_utility.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/lib/utils/url_utility.js b/app/assets/javascripts/lib/utils/url_utility.js index b9d2fc25c39..3328ff9cc23 100644 --- a/app/assets/javascripts/lib/utils/url_utility.js +++ b/app/assets/javascripts/lib/utils/url_utility.js @@ -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); }); |