diff options
author | Rubén Dávila <Ruben@GitLab.com> | 2015-12-21 22:59:15 -0500 |
---|---|---|
committer | Rubén Dávila <Ruben@GitLab.com> | 2015-12-21 22:59:15 -0500 |
commit | 42da7cd375a615d0ba092495981682bafdb99b47 (patch) | |
tree | e1a50b71140969c7aa01d2c217a4eca854d8c566 /app/assets/javascripts/merge_request_widget.js.coffee | |
parent | 25bf3eb8041be93d9003d2cac1323f4d18d317ec (diff) | |
download | gitlab-ce-issue_4189.tar.gz |
Fix redirect to wrong URL when merging and MR detail URL has an anchor. #4189issue_4189
Diffstat (limited to 'app/assets/javascripts/merge_request_widget.js.coffee')
-rw-r--r-- | app/assets/javascripts/merge_request_widget.js.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/merge_request_widget.js.coffee b/app/assets/javascripts/merge_request_widget.js.coffee index c4b63966fe7..738ffc8343b 100644 --- a/app/assets/javascripts/merge_request_widget.js.coffee +++ b/app/assets/javascripts/merge_request_widget.js.coffee @@ -18,7 +18,7 @@ class @MergeRequestWidget if data.state == "merged" urlSuffix = if deleteSourceBranch then '?delete_source=true' else '' - window.location.href = window.location.href + urlSuffix + window.location.href = window.location.pathname + urlSuffix else if data.merge_error $('.mr-widget-body').html("<h4>" + data.merge_error + "</h4>") else |