mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-22 20:51:10 +01:00
Give the "Code" tab in Diffusion more consistent (path-retaining) behavior
Summary: Fixes T13270. In Diffusion, the "Code" tab is linked in a weird way that isn't consistent with the other tabs. Particularly, if you navigate to `x/y/z/` and toggle between the "Branches" and "History" tabs (or other tabs), you keep your path. If you click "Code", you lose your path. Instead, retain the path, so you can navigate somewhere and then toggle to/from the "Code" tab to get different views of the same path. Test Plan: Browed into a repository, clicked "History", clicked "Code", ended up back in the place I started. Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T13270 Differential Revision: https://secure.phabricator.com/D20323
This commit is contained in:
parent
686b03a1d5
commit
6182193cf5
1 changed files with 1 additions and 2 deletions
|
@ -512,8 +512,7 @@ abstract class DiffusionController extends PhabricatorController {
|
|||
->setIcon('fa-code')
|
||||
->setHref($drequest->generateURI(
|
||||
array(
|
||||
'action' => 'branch',
|
||||
'path' => '/',
|
||||
'action' => 'browse',
|
||||
)))
|
||||
->setSelected($key == 'code'));
|
||||
|
||||
|
|
Loading…
Reference in a new issue