Commit 8679f24b authored by alexpott's avatar alexpott

Issue #1999424 by marcingy, mongolito404, jiff: Use Symfony Request for path module.

parent 2d5b6c41
......@@ -204,9 +204,10 @@ function path_admin_form($form, &$form_state, $path = array('source' => '', 'ali
*/
function path_admin_form_delete_submit($form, &$form_state) {
$destination = array();
if (isset($_GET['destination'])) {
$query = Drupal::request()->query;
if ($query->has('destination')) {
$destination = drupal_get_destination();
unset($_GET['destination']);
$query->remove('destination');
}
$form_state['redirect'] = array('admin/config/search/path/delete/' . $form_state['values']['pid'], array('query' => $destination));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment