I need to change some customer preferences (language, theme...) depending on variables that comes in the url (customer.pl?lan=en...) one of the problems that I have its that I'm using shibboleth authentication so in my Config.pm I have something like this:
Self->{'CustomerPanelLoginURL'} = 'https://my.domain/Shibboleth.sso/Login? ... omer.pl%3F';
so in my browser whenever I go to: "http://my.domain/otrs/customer.pl?lan=en" after the authentication and the redirection to the customer interface it just loose the lan=en variable. I have this code on my authentication module
Code: Select all
my $QueryStringLang = $ENV{QUERY_STRING} || '';
my @values = split(/;/,$QueryStringLang);
my $lan;
foreach my $i (@values) {
my($fieldname, $data) = split(/=/, $i);
$fieldname = $data;
}
I'm lost in this
Thanks in advance for your help