Comments

marcingy’s picture

Status: Active » Needs review
StatusFileSize
new755 bytes

Hopefully this kills off $_ in this module.

pbuyle’s picture

StatusFileSize
new755 bytes
+++ b/core/modules/path/path.admin.inc
@@ -202,9 +202,9 @@ function path_admin_form($form, &$form_state, $path = array('source' => '', 'ali
+  if (Drupal::request()->query->get('destination')) {
     $destination = drupal_get_destination();

This should uses Drupal::request()->query->has('destination') as done in the attached patch.

kim.pepper’s picture

Status: Needs review » Needs work
+++ b/core/modules/path/path.admin.incundefined
@@ -202,9 +202,9 @@ function path_admin_form($form, &$form_state, $path = array('source' => '', 'ali
+  if (Drupal::request()->query->has('destination')) {
...
+    Drupal::request()->query->remove('destination');

Let's extract a $query variable to reduce verbosity.

jlandfried’s picture

Status: Needs work » Needs review
StatusFileSize
new758 bytes
Crell’s picture

Status: Needs review » Reviewed & tested by the community

This is replacing one evil horrid hack for a new-code evil horrid hack. So, I guess we accept it for now. :-)

Crell’s picture

Issue tags: +Quick fix

Tagging

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 8679f24 and pushed to 8.x. Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.