Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18575485
D8136.id18408.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1005 B
Referenced Files
None
Subscribers
None
D8136.id18408.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sep 11 2025, 1:24 PM (6 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
11461566
Default Alt Text
D8136.id18408.diff (1005 B)
Attached To
Mode
D8136: Fix jump nav for new search stuff
Attached
Detach File
Event Timeline
Log In to Comment