diff options
-rw-r--r-- | content/_data/navigation.yaml | 8 | ||||
-rw-r--r-- | content/frontend/search/components/version_search.vue | 7 |
2 files changed, 6 insertions, 9 deletions
diff --git a/content/_data/navigation.yaml b/content/_data/navigation.yaml index f77c2efe..7429a1c4 100644 --- a/content/_data/navigation.yaml +++ b/content/_data/navigation.yaml @@ -440,14 +440,6 @@ sections: doc_url: 'omnibus/update/gitlab_15_changes.html' - doc_title: GitLab 14 changes doc_url: 'omnibus/update/gitlab_14_changes.html' - - doc_title: GitLab 13 changes - doc_url: 'omnibus/update/gitlab_13_changes.html' - - doc_title: GitLab 12 changes - doc_url: 'omnibus/update/gitlab_12_changes.html' - - doc_title: GitLab 11 changes - doc_url: 'omnibus/update/gitlab_11_changes.html' - - doc_title: GitLab 10 changes - doc_url: 'omnibus/update/gitlab_10_changes.html' - doc_title: Downgrade doc_url: 'ee/update/package/downgrade.html' - doc_title: Upgrade a self-compiled instance diff --git a/content/frontend/search/components/version_search.vue b/content/frontend/search/components/version_search.vue index 174e6a3e..5dae0c46 100644 --- a/content/frontend/search/components/version_search.vue +++ b/content/frontend/search/components/version_search.vue @@ -64,9 +64,14 @@ export default { methods: { searchArchivedVersion() { if (this.selectedVersion !== SELECT_DEFAULT_TEXT) { + // In 15.11, the search query string changed from "query" to "q". + // This logic can be removed when 15.x sites are retired (18.0 release). + const versionNumber = Number(this.selectedVersion); + const queryParam = versionNumber < 16.0 && versionNumber !== 15.11 ? 'query' : 'q'; + window.location.href = `https://archives.docs.gitlab.com/${ this.selectedVersion - }/search/?query=${encodeURI(this.query)}`; + }/search/?${queryParam}=${encodeURI(this.query)}`; this.selectedVersion = SELECT_DEFAULT_TEXT; } |