summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/merge_request_tabs.js.es6
diff options
context:
space:
mode:
authorSteffen Rauh <steffen.rauh@gmx.de>2016-11-17 13:05:32 +0100
committerSteffen Rauh <steffen.rauh@gmx.de>2016-12-03 22:40:18 +0100
commit0966c6d2c674f288be3f1adf576a2fa2aada3691 (patch)
treeaebe3209d3537154df58a9fe54d39a6632abd895 /app/assets/javascripts/merge_request_tabs.js.es6
parent0819d093e9b4aa9d5af1f6bdde147462f0c7cb48 (diff)
downloadgitlab-ce-0966c6d2c674f288be3f1adf576a2fa2aada3691.tar.gz
Fix compatibility with Internet Explorer 11 for merge requests
Diffstat (limited to 'app/assets/javascripts/merge_request_tabs.js.es6')
-rw-r--r--app/assets/javascripts/merge_request_tabs.js.es65
1 files changed, 2 insertions, 3 deletions
diff --git a/app/assets/javascripts/merge_request_tabs.js.es6 b/app/assets/javascripts/merge_request_tabs.js.es6
index 583fb9fc03d..771803edb7c 100644
--- a/app/assets/javascripts/merge_request_tabs.js.es6
+++ b/app/assets/javascripts/merge_request_tabs.js.es6
@@ -225,11 +225,10 @@
// We extract pathname for the current Changes tab anchor href
// some pages like MergeRequestsController#new has query parameters on that anchor
- const url = document.createElement('a');
- url.href = source;
+ var urlPathname = gl.utils.parseUrlPathname(source);
this.ajaxGet({
- url: `${url.pathname}.json${location.search}`,
+ url: `${urlPathname}.json${location.search}`,
success: (data) => {
$('#diffs').html(data.html);