Skip to content

[website] When hitting enter key in search field, browser navigates to first result - rather than opening a full page of search results which is what I would expect #19362

Open
@corneliusroemer

Description

@corneliusroemer

Summary

I was surprised that when I type something in the ruff documentation website's search bar and hit enter, the search modal collapses the browser navigates to the first result.

My gut expectation was to land on a full page version of the search results instead with more screen real estate dedicated to search results (and maybe a URL to share).

In the screenshare the navigation doesn't show visibly because the first result is identical with the current page, so all that changes is that the modal collapses (this was the original issue I filed here before @ntBre's observations made me realize I had hit a special case)

Image

Version

Production website live as of 2025-07-15 16:31 UTC

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions