Fix an issue where redirects would work incorrectly in Quicksand
Summary: Ref T7061. Quicksand still needs an ajax-style response here. Test Plan: Clicked a file detail page (this redirects) with column open, ended up in the right place. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T7061 Differential Revision: https://secure.phabricator.com/D12206
This commit is contained in:
@@ -414,7 +414,7 @@ abstract class PhabricatorController extends AphrontController {
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
} else if ($response instanceof AphrontRedirectResponse) {
|
} else if ($response instanceof AphrontRedirectResponse) {
|
||||||
if ($request->isAjax()) {
|
if ($request->isAjax() || $request->isQuicksand()) {
|
||||||
return id(new AphrontAjaxResponse())
|
return id(new AphrontAjaxResponse())
|
||||||
->setContent(
|
->setContent(
|
||||||
array(
|
array(
|
||||||
|
|||||||
Reference in New Issue
Block a user