Bug 21902

Summary: OPAC login should redirect to referring page
Product: Koha Reporter: Hugo Agud <hagud>
Component: OPACAssignee: Bugs List <koha-bugs>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: alex.arnaud
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Hugo Agud 2018-11-28 15:37:49 UTC
Some services at koha request to be logged for example holds, suggestions, send email , add to lists... 

the issue is that once you're logged koha redirect the user to 'my account' and looses the previous page... for example the search, the record.. whatever.

It should be great to add a syspref to allow admin decide what happends after a login... if it keeps to the previous page or if it moves to my account
Comment 1 Alex Arnaud 2019-01-07 14:55:38 UTC
(In reply to Hugo Agud from comment #0)
> Some services at koha request to be logged for example holds, suggestions,
> send email , add to lists... 
> 
> the issue is that once you're logged koha redirect the user to 'my account'
> and looses the previous page... for example the search, the record..
> whatever.
> 
> It should be great to add a syspref to allow admin decide what happends
> after a login... if it keeps to the previous page or if it moves to my
> account

Hello Hugo,

That seems to work already, if i'm not wrong.
Please try this test plan:

- as anonymous user, make a search at the opac side,
- click "place hold" link on a document,
- Koha request you to be logged in,
- login,
- your redirected to the hold process page
Comment 2 Hugo Agud 2019-01-08 12:07:01 UTC
Hi

you are right!, for most uupdated versions it is already working...