diff --git a/core/modules/node/lib/Drupal/node/NodeFormController.php b/core/modules/node/lib/Drupal/node/NodeFormController.php index 5145a57..70af1c8 100644 --- a/core/modules/node/lib/Drupal/node/NodeFormController.php +++ b/core/modules/node/lib/Drupal/node/NodeFormController.php @@ -464,9 +464,9 @@ public function save(array $form, array &$form_state) { */ public function delete(array $form, array &$form_state) { $destination = array(); - if (isset($_GET['destination'])) { + if (\Drupal::request()->query->has('destination')) { $destination = drupal_get_destination(); - unset($_GET['destination']); + \Drupal::request()->query->remove('destination'); } $node = $this->entity; $form_state['redirect'] = array('node/' . $node->nid . '/delete', array('query' => $destination));