Problem
The search landing page builds example search links by interpolating the query string directly into href. If an example query contains reserved URL characters like &, #, or %, the browser can interpret those characters as URL syntax instead of part of the search query.
Reproduction
Create or render a search example link for a query such as foo & bar#baz%qux.
Expected
Clicking the example should open /search with the full query value preserved.
Actual
Reserved characters can split, truncate, or otherwise corrupt the query parameter.
Impact
Search education links can silently send users to the wrong query as examples evolve or include advanced syntax with reserved characters.
Problem
The search landing page builds example search links by interpolating the query string directly into
href. If an example query contains reserved URL characters like&,#, or%, the browser can interpret those characters as URL syntax instead of part of the search query.Reproduction
Create or render a search example link for a query such as
foo & bar#baz%qux.Expected
Clicking the example should open
/searchwith the full query value preserved.Actual
Reserved characters can split, truncate, or otherwise corrupt the
queryparameter.Impact
Search education links can silently send users to the wrong query as examples evolve or include advanced syntax with reserved characters.