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
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user