diff --git a/core/modules/block/lib/Drupal/block/BlockFormController.php b/core/modules/block/lib/Drupal/block/BlockFormController.php index 5965c21..258cd2f 100644 --- a/core/modules/block/lib/Drupal/block/BlockFormController.php +++ b/core/modules/block/lib/Drupal/block/BlockFormController.php @@ -350,6 +350,11 @@ public function delete(array $form, array &$form_state) { 'block' => $this->entity->id(), ), ); + $query = \Drupal::request()->query; + if ($query->has('destination')) { + $form_state['redirect_route']['options']['query']['destination'] = $query->get('destination'); + $query->remove('destination'); + } } /**