Overrides Drupal\Core\Entity\EntityFormController::delete().
Overrides EntityFormController::delete
public function delete(array $form, array &$form_state) {
$destination = array();
$query = \Drupal::request()->query;
if ($query
->has('destination')) {
$destination = drupal_get_destination();
$query
->remove('destination');
}
$node = $this->entity;
$form_state['redirect'] = array(
'node/' . $node->nid . '/delete',
array(
'query' => $destination,
),
);
}