From 79c837d505c3edc1d9ac9cb74565f8105ad2a455 Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 21 Aug 2014 12:21:10 -0700 Subject: [PATCH] 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 --- src/applications/files/phid/PhabricatorFileFilePHIDType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/files/phid/PhabricatorFileFilePHIDType.php b/src/applications/files/phid/PhabricatorFileFilePHIDType.php index ff44fbd9d4..7b74065535 100644 --- a/src/applications/files/phid/PhabricatorFileFilePHIDType.php +++ b/src/applications/files/phid/PhabricatorFileFilePHIDType.php @@ -30,7 +30,7 @@ final class PhabricatorFileFilePHIDType extends PhabricatorPHIDType { $id = $file->getID(); $name = $file->getName(); - $uri = $file->getBestURI(); + $uri = $file->getInfoURI(); $handle->setName("F{$id}"); $handle->setFullName("F{$id}: {$name}");