Needs review
Project:
Contextual links
Version:
6.x-2.x-dev
Component:
Miscellaneous
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2010 at 19:38 UTC
Updated:
7 Oct 2015 at 12:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
teezee commentedMakes sense...
I'll try to find the correct statement to skip the destination.
1. Delete link must still have a destination set when you would click the node-delete link from an overview page with node teasers, but:
2. Delete link shouldn't have a destination set to node/$nid where $nid is the same as the node about to be deleted.
Comment #2
teezee commentedPatch removes the 'query' part of the link array by default. It adds the 'query' part of the link conditionally.
Do NOT add a destination that points to the node when:
$_GET['q']points to node/$nid (where $nid is it's own node ID)$node->bodyis setIn teaser mode the
$node->bodyis not set, but in full page mode it is. Also, when using revisioning (and viewing node/$nid/revisions/$rev/view) or panel pages for your node view, the$_GET['q']might not be node/$nid, but it likely is a page where the full node is displayed, and that's where you don't want to end-up after deleting IMHO.Please test!
Comment #3
philbar commentedhttp://drupal.org/cvs?commit=449950
Comment #5
vijaycs85Let's port to 2.x too.
Comment #6
vijaycs85Initial patch...