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.
| Comment | File | Size | Author |
|---|---|---|---|
| admin_menu-destination.patch | 792 bytes | smk-ka |
Comments
Comment #1
sunCommitted (with tiny string concatenation fix).