Page MenuHomePhabricator

D8136.diff
No OneTemporary

D8136.diff

Index: src/applications/home/controller/PhabricatorHomeMainController.php
===================================================================
--- src/applications/home/controller/PhabricatorHomeMainController.php
+++ 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:40 PM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6718219
Default Alt Text
D8136.diff (993 B)

Event Timeline