Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13972547
D8136.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
993 B
Referenced Files
None
Subscribers
None
D8136.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D8136: Fix jump nav for new search stuff
Attached
Detach File
Event Timeline
Log In to Comment