1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 22:10:55 +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:
epriestley 2014-08-21 12:21:10 -07:00
parent f43355855c
commit 79c837d505

View file

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