Drupal is a registered trademark of Dries Buytaert
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)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

fix_views_autocomplete

19 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