@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+1 -2
+1 -2
src/applications/diffusion/controller/DiffusionController.php
··· 512 512 ->setIcon('fa-code') 513 513 ->setHref($drequest->generateURI( 514 514 array( 515 - 'action' => 'branch', 516 - 'path' => '/', 515 + 'action' => 'browse', 517 516 ))) 518 517 ->setSelected($key == 'code')); 519 518