summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Knox <psimyn@gmail.com>2017-05-19 23:10:40 +1000
committerSimon Knox <psimyn@gmail.com>2017-05-19 23:10:40 +1000
commitfe41456393b27cc095f22938488ffa8d837f5482 (patch)
tree661814e9508107a051d0d48bde9c558c68317cd7
parent39a9265969b0a41d9f2e9948f026eb61ade0883e (diff)
downloadgitlab-ce-fe41456393b27cc095f22938488ffa8d837f5482.tar.gz
fix IE11 error from sentry32538-url
-rw-r--r--app/assets/javascripts/lib/utils/url_utility.js3
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);
});