Drupal is a registered trademark of Dries Buytaert
cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)!

fix_views_autocomplete

14 sites No security coverage
View on drupal.org

Module to fix "View parameter doesn't exist when editing block layout: Parameter "arg_0" must match "[^/]++"" error.

Features

For now you're not able to use Autocomplete for filters in Views-generated blocks. If you will:
- Create View and add "block display".
- Add filters to the block, expose them to visitors and enable AJAX.
- Add page display with contextual filters and the path should have a dynamic argument such as /path/%.
- Place the block to any page then you will get error instead of your page and corresponding error message:

Symfony\Component\Routing\Exception\InvalidParameterException: Parameter "view_args" for route "views_filters.autocomplete" must match "[^/]++" ("" given) to generate a corresponding URL. in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 202 of /var/www/crm.renat.t.cls-lms.com/web/core/lib/Drupal/Core/Routing/UrlGenerator.php).

This module fixes this issue.

Post-Installation

Module has no settings, affected Views just go back online after this module is enabled.

Similar projects

There is corresponding issue against Drupal core and proposed patch:
https://www.drupal.org/project/drupal/issues/3239685
However such patches are now not being accepted for many years, and it's not a best practice to patch core after each update, hence this module was written as a hassle-free fix for this issue one can use right now. If proposed patch will be accepted, this module will likely become unnecessary for newer versions of a Drupal core.

Activity

Total releases
2
First release
Feb 2025
Latest release
1 year ago
Release cadence
0 days
Stability
50% stable

Releases

Version Type Release date
1.0.0 Stable Feb 18, 2025
1.0.x-dev Dev Feb 18, 2025