[Koha-bugs] [Bug 18946] Change language from external web fails
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jul 18 11:46:09 CEST 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18946
Karam Qubsi <karamqubsi at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |karamqubsi at gmail.com
--- Comment #1 from Karam Qubsi <karamqubsi at gmail.com> ---
Hi ,
Instead of using /cgi-bin/koha/opac-changelanguage.pl?language=en
You may try :/cgi-bin/koha/opac-main.pl?language=en
it look like opac-changelanguage.pl always assuming that you are on the same
domain , there should be further tests to handle that
perhaps something like this :
my $domain = C4::Context->preference("OPACBaseURL");
my $url = $query->referer() || '/';
if ($query->referer() !~ /$domain/ ) {
$url = $domain ;
}
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list