Bug #5679

Stop log-in button from redirecting user to home page

Added by Dan Gillean over 8 years ago. Updated over 8 years ago.

Status:VerifiedStart date:09/26/2013
Priority:MediumDue date:
Assignee:José Raddaoui Marín% Done:

100%

Category:Access Control
Target version:Release 2.0.1
Google Code Legacy ID: Tested version:
Sponsored:No Requires documentation:

Description

1) Browse for an archival description or other kind of record
2) Click the log-in button, fill in credentials

Resulting error
User is always redirected to the home page

Expected result
If the user is logging in, they should not be redirected from the current page. Instead, the page should reload with the options allowed from their user permissions available (button block, main menu, etc.)

Seems to me that redirecting on log-out is not as bad - there are some cases where the record should not be available to an unauthenticated user. But I think the ideal behaviour is: if the record is publicly available, logging in/out should not redirect the user. If an authenticated user is looking at a record not available to public users and then logs out, THEN the page should reload and direct users to the home page.

History

#1 Updated by José Raddaoui Marín over 8 years ago

Hi Dan,

I asked to Sevein a few days ago about that and he told me to add this issue in the 2.1 target, see #5514.

Regards

#2 Updated by Dan Gillean over 8 years ago

  • Assignee changed from Jesús García Crespo to José Raddaoui Marín

Ok, thanks Radda. I'm going to mark your old issue as the duplicate, since this one has some more notes on how to reproduce, expected behaviors, etc. on it.

#3 Updated by Dan Gillean over 8 years ago

  • Target version changed from Release 2.0.0 to Release 2.1.0

#4 Updated by José Raddaoui Marín over 8 years ago

  • Status changed from New to QA/Review
  • % Done changed from 0 to 100

#5 Updated by Dan Gillean over 8 years ago

  • Status changed from QA/Review to Verified
  • Target version changed from Release 2.1.0 to Release 2.0.1

Nice. Thanks for this. Default behaviour will still redirect user to home page on log out (which I think is fine), but everywhere I could think to test it, the page merely reloaded and presented admin options without redirecting me after log-in. Much better. Since this is done, I've bumped the target version to 2.0.1.

Also available in: Atom PDF