Skip to content

Sort by button in search results does not work #9392

Description

What

  • After searching products in the search box, the sort by dropdown does not work:
    • Results are not sorted
    • There is a blank value in the dropdown

Resulting url has 2 sort_by fields, with the last one with a ? instead of & :

http://world.openfoodfacts.localhost/cgi/search.pl?action=process&search_terms=coca&sort_by=unique_scans_n&page_size=24?sort_by=last_modified_t

image

Reported by Olaf Görlitz on Slack:
https://openfoodfacts.slack.com/archives/CUZK65DGE/p1700749241876539 (includes video)

Part of

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions