Skip to content

Search landing example links do not encode query parameters #1386

Description

@DivyamTalwar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions