[Koha-bugs] [Bug 31699] Add a generic way to redirect back to the page you were on at login for modal logins
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Nov 10 00:58:55 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31699
--- Comment #33 from David Cook <dcook at prosentient.com.au> ---
With my upcoming patch,
Without OPACBaseURL, no redirection happens for the following:
http://localhost:8080/cgi-bin/koha/opac-user.pl?return=http://koha-community.org/test?test=test
With OPACBaseURL, the return URL is rewritten to use the scheme and authority
of OPACBaseURL, so that the following:
http://localhost:8080/cgi-bin/koha/opac-user.pl?return=http://koha-community.org/test?test=test#test
Redirects to:
http://localhost:8080/test?test=test#test
--
So it shouldn't be possible to send a user anywhere other than
http://localhost:8080.
(An alternative would be to set the page visited in the user's database session
and then juggle that around and try to return to that, but that would be a more
difficult code change than Martin's patches here.)
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list