Skip to content
Snippets Groups Projects
Commit 8679f24b authored by Alex Pott's avatar Alex Pott
Browse files

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

parent 2d5b6c41
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment