mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 06:20:56 +01:00
Fix missing branch component in symbol crossreference URIs.
This commit is contained in:
parent
254f606e89
commit
78689df4d4
1 changed files with 9 additions and 1 deletions
|
@ -111,7 +111,15 @@ class DiffusionSymbolController extends DiffusionController {
|
|||
|
||||
$repo = idx($repos, $project->getRepositoryID());
|
||||
if ($repo) {
|
||||
$href = '/diffusion/'.$repo->getCallsign().'/browse'.$file.'$'.$line;
|
||||
|
||||
$drequest = DiffusionRequest::newFromAphrontRequestDictionary(
|
||||
array(
|
||||
'callsign' => $repo->getCallsign(),
|
||||
));
|
||||
$branch = $drequest->getBranchURIComponent($drequest->getBranch());
|
||||
$file = $branch.ltrim($file, '/');
|
||||
|
||||
$href = '/diffusion/'.$repo->getCallsign().'/browse/'.$file.'$'.$line;
|
||||
|
||||
if ($request->getBool('jump') && count($symbols) == 1) {
|
||||
// If this is a clickthrough from Differential, just jump them
|
||||
|
|
Loading…
Reference in a new issue