mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-02 02:40:58 +01:00
Fix jump nav for new search stuff
Summary: Ref T4365. Aligns jump nav with the normal search behavior. Test Plan: Typed some junk into the jump nav, mashed return. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T4365 Differential Revision: https://secure.phabricator.com/D8136
This commit is contained in:
parent
ca6b9f66e1
commit
caa15b1732
1 changed files with 4 additions and 7 deletions
|
@ -95,16 +95,13 @@ final class PhabricatorHomeMainController
|
||||||
$jump);
|
$jump);
|
||||||
|
|
||||||
if ($response) {
|
if ($response) {
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
} else if ($request->isFormPost()) {
|
} else if ($request->isFormPost()) {
|
||||||
$query = id(new PhabricatorSavedQuery())
|
$uri = new PhutilURI('/search/');
|
||||||
->setEngineClassName('PhabricatorSearchApplicationSearchEngine')
|
$uri->setQueryParam('query', $jump);
|
||||||
->setParameter('query', $jump)
|
$uri->setQueryParam('search:primary', 'true');
|
||||||
->save();
|
|
||||||
|
|
||||||
return id(new AphrontRedirectResponse())
|
return id(new AphrontRedirectResponse())->setURI((string)$uri);
|
||||||
->setURI('/search/'.$query->getQueryKey().'/');
|
|
||||||
} else {
|
} else {
|
||||||
return id(new AphrontRedirectResponse())->setURI('/');
|
return id(new AphrontRedirectResponse())->setURI('/');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue