redirect_url no longer working in v4

Created on 21 October 2024, about 1 month ago

On Drupal 9 we used the following code

/**
   * {@inheritdoc}
   */
  public function executeMultiple(array $entities) {

    foreach ($entities as $delta => $entity) {
      $entity_id = $entity->id();
      $this->context['sandbox']['entity_ids'][] = $entity_id;
    }
    $url_parameter = implode('+', $this->context['sandbox']['entity_ids']);
    $this->context['results']['redirect_url'] = Url::fromRoute('view.order_labels.data_export_1' , ['arg_0' => $url_parameter]);
  }

in a class inheriting from Drupal\views_bulk_operations\Action\ViewsBulkOperationsActionBase.

In Drupal 10.3.x with views_bulk_operations v4.2.7 the behaviour of redirecting to an URL after processing finishes no longer works.

🐛 Bug report
Status

Active

Version

4.2

Component

Core

Created by

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

Comments & Activities

Production build 0.71.5 2024