Outstanding Interactive Tasks view crashes when using manual web task with internal URL

Created on 17 February 2024, 4 months ago
Updated 8 March 2024, 4 months ago

Problem/Motivation

Here is the error I get on Drupal 10.2.3/PHP 8.3:

InvalidArgumentException : The URI '/eca/xxx/yyy?queueid_or_token=_4IzUmMwMbKIhYja5cRNSxcY2xgsxbfc-h4POPvdTY8&modal=notmodal' is invalid. You must use a valid URI scheme. dans Drupal\Core\Url::fromUri() (ligne 293 de /var/www/html/web/core/lib/Drupal/Core/Url.php).

#0 /var/www/html/web/modules/contrib/maestro/src/Plugin/views/field/MaestroEngineActiveHandler.php(90): Drupal\Core\Url::fromUri('/eca/xxx/...')
#1 /var/www/html/web/core/modules/views/src/Plugin/views/field/FieldPluginBase.php(1196): Drupal\maestro\Plugin\views\field\MaestroEngineActiveHandler-

Here is the related code:

  case 'internal':
    $url = Url::fromUserInput($handler, ['query' => $query_options])->toString();
    break;

Proposed resolution

Use absolute internal URLs:

  case 'internal':
    $url = Url::fromUserInput($handler, ['query' => $query_options, 'absolute' => TRUE])->toString();
    break;

Check MR.

🐛 Bug report
Status

Fixed

Version

3.1

Component

Code

Created by

🇫🇷France mably

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024