Stop new merge request page tabs updating the 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
This commit is contained in:
Phil Hughes 2017-04-05 10:42:31 +01:00
parent d4d95ad32f
commit d0821ae667
2 changed files with 6 additions and 1 deletions

View File

@ -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,
});

View File

@ -0,0 +1,4 @@
---
title: Fixed tabs on new merge request page causing incorrect URLs
merge_request:
author: