]> git.koha-community.org Git - koha.git/commit
Bug 15816: Redirect back to correct page after login
authorJesse Weaver <jweaver@bywatersolutions.com>
Fri, 6 May 2016 19:52:46 +0000 (13:52 -0600)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 13 May 2016 12:38:14 +0000 (12:38 +0000)
commitbc707baf02c672fdd8f6d2095137694d7e400a97
tree9249e111bc4ac252a936e747e73ce5c09bd6038e
parent3f0a1f0c7f5edebbaa5d61f0392e9ab67d201e00
Bug 15816: Redirect back to correct page after login

This uses a hacky but simple method to get the correct script name under
proxied packaged Plack.

Test plan:
  1) Log out of both the OPAC and staff side.
  2) Try to access a page that requires login (opac-reserve.pl is a
good one for the OPAC), then log in.
  3) You will be redirected back to mainpage.pl or opac-user.pl.
  4) Repeat above for both staff side and OPAC.
  5) Apply patch.
  6) Repeat steps 1-4; you should be redirected back to the original
     page you were on.
  7) Repeat the above for both a traditional CGI and kohadevbox/package
     Plack installation.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Auth.pm
koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt