mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 06:20:56 +01:00
Make file handles have "/Fxxx" as the URI
Summary: Primarily, this fixes searching for `F123` in global search. The info URI is now a better URI than the "best" URI for files, and doesn't have redirect issues. Test Plan: Searched for `F123` in global search. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D10330
This commit is contained in:
parent
f43355855c
commit
79c837d505
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ final class PhabricatorFileFilePHIDType extends PhabricatorPHIDType {
|
||||||
|
|
||||||
$id = $file->getID();
|
$id = $file->getID();
|
||||||
$name = $file->getName();
|
$name = $file->getName();
|
||||||
$uri = $file->getBestURI();
|
$uri = $file->getInfoURI();
|
||||||
|
|
||||||
$handle->setName("F{$id}");
|
$handle->setName("F{$id}");
|
||||||
$handle->setFullName("F{$id}: {$name}");
|
$handle->setFullName("F{$id}: {$name}");
|
||||||
|
|
Loading…
Reference in a new issue