Drupal 6.13 (and pressflow 6.20) patch for common.inc - drupal_get_destination. Similar to issues #213218: Edit-part gets lost, when redirecting after Login, #158159: drupal_get_destination() doesn't work with queries.

A user receives a login page after attempting to visit access-restricted content /browse?page=3, but after successful login, user is directed to /browse and everything after ? is lost.

CommentFileSizeAuthor
#1 common.inc_.6.13-1128624.patch902 bytesdrnikki

Comments

drnikki’s picture

StatusFileSize
new902 bytes
subhajitfriend’s picture

if you are submitting from a form just attach this in your form and everyhing should work, i guess:
$form['#action'] = url($_GET['q'], array('query' => drupal_get_destination()));

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.