Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14076346
D20204.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D20204.diff
View Options
diff --git a/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php b/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php
--- a/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php
+++ b/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php
@@ -127,10 +127,20 @@
if (($offset + (2 * $limit)) < $hard_limit) {
$next_uri = id(new PhutilURI($request->getRequestURI()))
->replaceQueryParam('offset', $offset + $limit)
- ->replaceQueryParam('q', $query)
- ->replaceQueryParam('raw', $raw_query)
->replaceQueryParam('format', 'html');
+ if ($query !== null) {
+ $next_uri->replaceQueryParam('q', $query);
+ } else {
+ $next_uri->removeQueryParam('q');
+ }
+
+ if ($raw_query !== null) {
+ $next_uri->replaceQueryParam('raw', $raw_query);
+ } else {
+ $next_uri->removeQueryParam('raw');
+ }
+
$next_link = javelin_tag(
'a',
array(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 4:56 PM (13 h, 45 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6775373
Default Alt Text
D20204.diff (1 KB)
Attached To
Mode
D20204: Fix URI construction of typeahead browse "more" pager
Attached
Detach File
Event Timeline
Log In to Comment