]> 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)
committerJulian Maurice <julian.maurice@biblibre.com>
Mon, 16 May 2016 07:11:52 +0000 (09:11 +0200)
commitb486a64c16486a339dc81140e7a5d65851add26a
treeced97b21235fa644a871f37d7e3ceffdcb49d4ee
parent1e494ae15ed819512a9b04a3b7ffd76c38a36018
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>
(cherry picked from commit bc707baf02c672fdd8f6d2095137694d7e400a97)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
C4/Auth.pm
koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt