Skip to content

Searchbar Button with empty text opens debug page #1482

Description

@Moo2Mee

If I hit the search button without typing anything in the text field, versions 2.7.x open a debug-page:

Symfony \ Component \ HttpKernel \ Exception \ HttpException

PHP 8.4.10
11.45.1
Missing or empty query parameter

[...]
  // Validate the presence and non-emptiness of the query parameter

        if (!$query || trim($query) === '') {

            abort(400, 'Missing or empty query parameter');

        }
[...]

In versions 2.6.x and before an empty Google search would open the Google homepage. This is what I'd prefer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions