Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarah German <sgerman@gitlab.com>2023-08-15 21:43:29 +0300
committerSuzanne Selhorn <sselhorn@gitlab.com>2023-08-15 21:43:29 +0300
commit151fdb0ccd0ee4eb2b3c311848a4b74b2f8d44ea (patch)
tree3dbc6f46368304e1b743cdb7fa3de39742fc0117
parentfb97a56db704f205050a150e05176e2af4990b4b (diff)
Fix 'Use GitLab' section search filter
-rw-r--r--content/frontend/search/search_helpers.js2
-rw-r--r--content/frontend/services/google_search_api.js2
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,
}),