mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-20 13:52:40 +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);
|
||||
|
||||
if ($response) {
|
||||
|
||||
return $response;
|
||||
} else if ($request->isFormPost()) {
|
||||
$query = id(new PhabricatorSavedQuery())
|
||||
->setEngineClassName('PhabricatorSearchApplicationSearchEngine')
|
||||
->setParameter('query', $jump)
|
||||
->save();
|
||||
$uri = new PhutilURI('/search/');
|
||||
$uri->setQueryParam('query', $jump);
|
||||
$uri->setQueryParam('search:primary', 'true');
|
||||
|
||||
return id(new AphrontRedirectResponse())
|
||||
->setURI('/search/'.$query->getQueryKey().'/');
|
||||
return id(new AphrontRedirectResponse())->setURI((string)$uri);
|
||||
} else {
|
||||
return id(new AphrontRedirectResponse())->setURI('/');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue