When a user clicks on a link "log in to ..." they are redirected to their account page instead of staying on the page they were on to do whatever they needed to log in to do. To reproduce : 1- In Administration > System preferences, enable TagsEnabled 2- Make sure TagsInputOnDetail is set to Allow 3- Go to OPAC, and do a search 4- Click on title to go to the details page 5- Click on the "Log in to add tags" link 6- Enter your login credentials in the popup window Result : user is redirected to "My account" Desired result : user is now logged in but stays on the record detail page Second case : 1- In OPAC, click on Lists > View All 2- Click on "Log in to create new lists" 3- Enter your login credentials Result : user is redirected to "My account" Desired result : user is now logged in but stays on the lists page
I think this should happen any time a user clicks on a link that isn't explicitly "Log in to my account" So any action that triggers a login because a user wants to do something (place a hold, create a list, send a cart, there are probably others) we should take them back to where they came from instead of to their account.
(In reply to Liz Rea from comment #1) > I think this should happen any time a user clicks on a link that isn't > explicitly "Log in to my account" > > So any action that triggers a login because a user wants to do something > (place a hold, create a list, send a cart, there are probably others) we > should take them back to where they came from instead of to their account. +1
See bug 31699 for the general approach we now have in code.. it can be used on any login links we wish.