Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
For a view with no ajax, the destination for the node edit and node delete links is wrong. The results vary based on the nodes but here is an example: http://test2.network:1234/node/971/delete?destination=nodeSmartScareCrow... . the destination in this case should have been node/1789 (which is what $_GET['q' returns]).
Comments
Comment #1
bkat CreditAttribution: bkat commentedI think I've come across the same problem on views 6.x-3.0. What is happening is that in views_handler_field_user_link_edit.inc the render_link member function is doing:
drupal_get_destination is returning a value like node%2F141%2Froster (aka node/141/roster)
What I'm actually seeing in the view is nodeMinnesotaF141MinnesotaFroster. What its actually done is replace %2 with the value of my 2nd argument to the view!
as an ugly test/workaround, I replaced the code above with
$this->options['alter']['query'] = url_decode(drupal_get_destination());
and it appears to function correctly even the query string isn't url encoded in the html source.
Comment #2
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe Drupal 6 branch is no longer supported, please check with the D6LTS project if you need further support. For more information as to why this issue was closed, please see issue #3030347: Plan to clean process issue queue