Skip to content

Fixed filter queries displayed as broken badges on search component #6054

Description

@LotteHofstede

Describe the bug

Fixed filter queries are displayed as normal filter queries in the search UI.

We added fixed filter queries to be able to pass filters to the backend without making those filters visible in the UI and frontend URL. Unfortunately, these filters have become visible as badges in the UI since v9. They behave as if you can remove them (when you can't), and often don't have translations either - making them look broken.

To Reproduce

On the Person page when there's a search component present that only shows items that are authored by the displayed person. Underneath the search bar, you will notice a badge with text search.filters.applied.f.isAuthorOfPublication: <UUID>
Eg.: Demo Site :: Dunning, Alison

Expected behavior

Filter badges should only represent filter query parameters in the frontend URL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status
    🆕 Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions