There is currently an issue when a user is making AJAX requests and then is autologged out.

Use case:

  1. User votes on a post using AJAX. (Note: The AJAX request URL is something like /vote/node/NID/1/voteupdown/f351f5ace551efdb74d4954e81889466)
  2. User is away and is autologged out.
  3. Autologout logs the user out to a URL like: /logout?destination=vote%2Fnode%2FNID%2F1%2Fvoteupdown%2Ff351f5ace551efdb74d4954e81889466&autologout_timeout=1
  4. When the user logs back in, they are redirected to the voting URL rather than the page that they were on when they made the AJAX request.

After making an AJAX request, the redirect URL should continue to be the URL of the page that they were on when they made the AJAX request, since they never really left the page.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mark.lindsey’s picture

johnennew’s picture

Version: 6.x-4.x-dev » 7.x-4.x-dev
Status: Needs review » Active

Hi Mark,

Thanks for your patch. It looks good and I've gone ahead and added to the 6.x-4.x branch.

Setting to 7.x-4.x to port to latest version

mecmartini’s picture

Status: Active » Needs review
FileSize
922 bytes

Hi,

I made a patch for 7.x-4.3. Thank you it's very usefull!

johnennew’s picture

Status: Needs review » Fixed

Brilliant - thanks very much - I have pushed this to the 7.x-4.x development branch.

mecmartini’s picture

Status: Fixed » Needs review
FileSize
753 bytes

Sorry ceng I did an error in the patch. Here is the correct one.

johnennew’s picture

Status: Needs review » Fixed

Ah, good spot.

Status: Fixed » Closed (fixed)

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

  • Commit f1bc500 on 7.x-4.x, 8.x-1.x authored by mecmartini, committed by ceng:
    Issue #2129297 by mecmartini: Port of fix for redirect problem to 7.x-4....
  • Commit fd00cdf on 7.x-4.x, 8.x-1.x authored by mecmartini, committed by ceng:
    Issue #2129297 by mecmartini: typo fix from previous patch submission