Custom redirect specific page after edit With my Drupal website ( which is much more custom than drupal ) I've got node referenced in another ( ex. an article in a custom page ).

I want the ability to easily edit the referenced content. To do that I've put a button with the link:

&lt;?php print $base_url; ?&gt;/node/&lt;?php print $article-&gt;nid; ?&gt;/edit?destination=&lt;?php print urlencode('node/'.$node-&gt;nid); ?&gt;


Sadly Drupal doesn't care about the destination and redirects me to the article node and not the current node it was into.
It is always a good habit to use l() to create links in Drupal. In your case, you can use the below code to create link.

l(t('Title'), 'node/' . $article-&gt;nid . '/edit', array('query' =&gt; array('destination' =&gt; 'node/' . $node-&gt;nid)));