summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-04-05 10:42:31 +0100
committerPhil Hughes <me@iamphill.com>2017-04-05 10:42:31 +0100
commitd0821ae66785b18ba7af017b9498e53d3002e835 (patch)
tree120513a178f50f7d8825d59d4b66bebe76180265
parentd4d95ad32fb1f47ecb4b6d0e8d9885dba0222453 (diff)
downloadgitlab-ce-mr-new-page-changing-url.tar.gz
Stop new merge request page tabs updating the URLmr-new-page-changing-url
The tabs on the merge_requests#new where changing the URL to URLs meant for merge_requests#show. The URL don't actually exist on the new page, so the simplest solution is to not update the URL for this page. Closes #30419
-rw-r--r--app/views/projects/merge_requests/_new_submit.html.haml3
-rw-r--r--changelogs/unreleased/mr-new-page-changing-url.yml4
2 files changed, 6 insertions, 1 deletions
diff --git a/app/views/projects/merge_requests/_new_submit.html.haml b/app/views/projects/merge_requests/_new_submit.html.haml
index e7fcac4c477..03069804c86 100644
--- a/app/views/projects/merge_requests/_new_submit.html.haml
+++ b/app/views/projects/merge_requests/_new_submit.html.haml
@@ -53,5 +53,6 @@
:javascript
var merge_request = new MergeRequest({
- action: "#{(@show_changes_tab ? 'new/diffs' : 'new')}"
+ action: "#{(@show_changes_tab ? 'new/diffs' : 'new')}",
+ setUrl: false,
});
diff --git a/changelogs/unreleased/mr-new-page-changing-url.yml b/changelogs/unreleased/mr-new-page-changing-url.yml
new file mode 100644
index 00000000000..39de1eaa523
--- /dev/null
+++ b/changelogs/unreleased/mr-new-page-changing-url.yml
@@ -0,0 +1,4 @@
+---
+title: Fixed tabs on new merge request page causing incorrect URLs
+merge_request:
+author: