Page MenuHomePhabricator

D8136.id18408.diff
No OneTemporary

D8136.id18408.diff

diff --git a/src/applications/home/controller/PhabricatorHomeMainController.php b/src/applications/home/controller/PhabricatorHomeMainController.php
--- a/src/applications/home/controller/PhabricatorHomeMainController.php
+++ b/src/applications/home/controller/PhabricatorHomeMainController.php
@@ -95,16 +95,13 @@
$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('/');
}

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 18, 7:35 PM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6728454
Default Alt Text
D8136.id18408.diff (1005 B)

Event Timeline