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

bkat’s picture

I 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:

      $this->options['alter']['query'] = drupal_get_destination();

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.

Chris Matthews’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

The 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