diff options
author | Suzanne Selhorn <sselhorn@gitlab.com> | 2023-08-15 21:43:29 +0300 |
---|---|---|
committer | Suzanne Selhorn <sselhorn@gitlab.com> | 2023-08-15 21:43:29 +0300 |
commit | 1d6bc91b955b4020ac4ca64f4db553bce23bbff5 (patch) | |
tree | 2815e165bb16c74a865807bd0f51c5dfabf6c0bc | |
parent | e9d8e4341d8ab33386bbc31c9f61fb1e5c07e01c (diff) | |
parent | 151fdb0ccd0ee4eb2b3c311848a4b74b2f8d44ea (diff) |
Merge branch '1699-user-search-filter-borkage-gps' into 'main'
Fix 'Use GitLab' section search filter
Closes #1699
See merge request https://gitlab.com/gitlab-org/gitlab-docs/-/merge_requests/4165
Merged-by: Suzanne Selhorn <sselhorn@gitlab.com>
Co-authored-by: Sarah German <sgerman@gitlab.com>
-rw-r--r-- | content/frontend/search/search_helpers.js | 2 | ||||
-rw-r--r-- | content/frontend/services/google_search_api.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/content/frontend/search/search_helpers.js b/content/frontend/search/search_helpers.js index c4c22b7d..1a354fed 100644 --- a/content/frontend/search/search_helpers.js +++ b/content/frontend/search/search_helpers.js @@ -64,7 +64,7 @@ export const SEARCH_FILTERS = [ }, { text: 'User docs', - value: 'Use GitLab,Tutorials,Subscribe', + value: 'Tutorials,Subscribe,Use GitLab', id: 'user', }, { diff --git a/content/frontend/services/google_search_api.js b/content/frontend/services/google_search_api.js index e33fac77..0bac1a20 100644 --- a/content/frontend/services/google_search_api.js +++ b/content/frontend/services/google_search_api.js @@ -22,7 +22,7 @@ export const fetchResults = async (query, filters, pageNumber, numResults) => { new URLSearchParams({ key: GOOGLE_SEARCH_KEY, cx: GPS_ID, - q: `${query}${filterQuery}`.replaceAll(' ', '+'), + q: `${query.replaceAll(' ', '+')}${filterQuery}`, num: numResults, start: (pageNumber - 1) * numResults + 1, }), |