Some mandatory parameters are missing ("group") to generate a URL for route 'views.view_name.page_1' when using Better Exposed Filters as link

Created on 17 June 2024, 6 months ago

Problem/Motivation

I've come across this error when setting up a viewspage for group content (eg. /group/51/events where 51 is the group ID), with a contextual filter on the group ID and an exposed filter for the category.

The exposed filter is shown as links with the help of Better Exposed Filters, but that's when the error shows on the front-end.
In Claro there is no error shown. When I alter the exposed filter to any other option, there's no issue, just when displaying as a link.
There's obviously an issue with the link generated by Better Exposed Filters, not being able to fetch the group parameter, not even when I try to preprocess the link.

I've also stumbled across this issue , but Devel isn't enabled.

Steps to reproduce

- Install groups module
- Enable taxonomy module
- Add a taxonomy for categories
- Create a group with (commerce) content relationships
- Add a group and respective (commerce) content with additional categories
- Add a view for a specific content page
- Add a display for a page
- Add a contextual filter that contains the group ID
- Test view and see everything works
- Add an exposed filter for category
- Test viewspage and see everything still works
- Enable Better Exposed Filters
- Update settings for views page -> display as link
- Test viewspage and see breaking error "Some mandatory parameters are missing ("group") to generate a URL for route views.view_name.page_1"

Proposed resolution

Preprocess the BEF-links so the group parameter is given along with the links for an exposed views filter

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Active

Version

3.3

Component

Code

Created by

🇧🇪Belgium blacksnipe

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024