Skip to content

Fix versioned search redirect for versions 15.11+

Sarah German requested to merge gps-version-query-param into main

What does this MR do and why?

Fixes behavior on the "Search the archives" dropdown on the search results page. We need to set the query parameter on the redirect URL based on the version because the string changed from query to q in 15.11.

Closes #1685 (closed)

Screenshots, screen recordings, or links to review app

Review app: https://gps-version-query-param.docs.gitlab-review.app/search/?q=git&page=1

How validate

  1. Visit the review app search result page: https://gps-version-query-param.docs.gitlab-review.app/search/?q=git&page=1
  2. Use the "Search the archives" dropdown to run the search on Archive sites
  3. The archive search page should run a search for your query when the page loads.

Verify this works for 15.11 and a few different prior versions.

Merge request acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Sarah German

Merge request reports

Loading