Skip to content

Proposals: the link to filter by category directly from a proposal card is not working #11180

@martanducas

Description

@martanducas

Describe the bug

In a proposals component, when I click over the link of the category inside a proposal card to see all the proposals within that category, filter is not working.

Screenshot 2023-07-13 at 14 41 49

To Reproduce

  1. Go to https://meta.decidim.org/processes/roadmap/f/122/
  2. Click the link of a category inside some proposal card
  3. You will see all the proposals again with no filter

Expected behavior

The generated link is incorrect. Instead of adding this parameter:
?filter[category_id][]=2

This one should be added:
?filter[with_any_category][]=2

Extra data

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions