diff options
author | winniehell <git@winniehell.de> | 2016-11-07 03:16:39 +0300 |
---|---|---|
committer | winniehell <git@winniehell.de> | 2016-12-02 01:16:09 +0300 |
commit | f90b6200e450f6b87cc310ab5734a09719d891d3 (patch) | |
tree | 2522b847828a73bd3bbdf9e016f3f23f060dcb46 /app/assets/javascripts/merge_request_tabs.js | |
parent | 629624f30f6ad2f31681772adf88ace6f28727c9 (diff) |
Clean up common_utils.js (!7318)
Diffstat (limited to 'app/assets/javascripts/merge_request_tabs.js')
-rw-r--r-- | app/assets/javascripts/merge_request_tabs.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/merge_request_tabs.js b/app/assets/javascripts/merge_request_tabs.js index b1928f8d279..4a192ca5796 100644 --- a/app/assets/javascripts/merge_request_tabs.js +++ b/app/assets/javascripts/merge_request_tabs.js @@ -220,7 +220,8 @@ // We extract pathname for the current Changes tab anchor href // some pages like MergeRequestsController#new has query parameters on that anchor - var url = gl.utils.parseUrl(source); + var url = document.createElement('a'); + url.href = source; return this._get({ url: (url.pathname + ".json") + this._location.search, |