Problem/Motivation
When trying to execute a view that use the views_url_path default argument and the URL is empty, like in a drush command, the system returns a fatal error after upgrading to 1.5.
In 1.3, when the URL is empty , it returns an empty string, however in 1.5, we get the following error:
TypeError: Symfony\Component\HttpFoundation\InputBag::get(): Argument #1 ($key) must be of type string, null given, called in /var/www/html/web/modules/contrib/views_url_path_arguments/src/Plugin/views/argument_default/UrlPath.php
Refactor introduced in #3535052: Deprecated function: ctype_digit() does not work with empty routes.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork views_url_path_arguments-3536870
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #5
plopescComment #6
heddnThanks for the fix.