From d83bf5ea06d1a9b211bc876cb32d77a12eb9be1e Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 10 Jul 2014 06:39:23 -0700 Subject: [PATCH] After a file upload, take the user to the info page, not the view page Summary: Fixes T5588. If you upload an image, we currently take you to the image URL, but this makes it hard to figure out the monogram for use elsewhere. Test Plan: Uploaded a file and was taken to the info page. Reviewers: joshuaspence Reviewed By: joshuaspence Subscribers: epriestley Maniphest Tasks: T5588 Differential Revision: https://secure.phabricator.com/D9872 --- .../files/controller/PhabricatorFileUploadController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/files/controller/PhabricatorFileUploadController.php b/src/applications/files/controller/PhabricatorFileUploadController.php index 7f437b8608..9ca0a702f1 100644 --- a/src/applications/files/controller/PhabricatorFileUploadController.php +++ b/src/applications/files/controller/PhabricatorFileUploadController.php @@ -23,7 +23,7 @@ final class PhabricatorFileUploadController extends PhabricatorFileController { } if (!$errors) { - return id(new AphrontRedirectResponse())->setURI($file->getViewURI()); + return id(new AphrontRedirectResponse())->setURI($file->getInfoURI()); } }