If the current page url already contains a destination, like (fictional example) http://www.example.com/admin/build/modules?destination=user/1, after invoking one of the special crafted urls like "Empty cache", you're being redirected to just the destination "user/1". However, the expected result is to end up on the exact same page again as before invoking the menu item.

This happens because drupal_get_destination() extracts and returns just the destination when it's set. Only the second half of dgd() returns what we need: the complete current url reconstructed and properly urlencoded.

CommentFileSizeAuthor
admin_menu-destination.patch792 bytessmk-ka

Comments

sun’s picture

Status: Needs review » Fixed

Committed (with tiny string concatenation fix).

Status: Fixed » Closed (fixed)

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