Hello all,

I've noticed that when a user goes to a node's revisions page coming from the admin/content page, then he gets redirected back to it when clicking the "Compare" button.

I've tracked down the issue to be that the drupal_goto function always takes preference on the destination parameter.

Thus, I'm creating this thread to discuss the best way to solve this issue.

Comments

caminadaf created an issue. See original summary.

alan d.’s picture

You must be coming for an altered listing :)

This would be more complicated trying to chain the destination, and doesn't really make sense to do that, so I went for the easy fix.

  if (isset($_GET['destination'])) {
    unset($_GET['destination']);
  }

  • Alan D. committed bb7bd72 on 7.x-3.x
    Issue #2667654 by caminadaf, Alan D.: Wrong redirect when coming from...
alan d.’s picture

Status: Active » Fixed

Thanks

Status: Fixed » Closed (fixed)

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