From 1c381a0fc5aaf7bbfc8d31a9336d8a1664a8d3b1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 16 Jan 2026 15:29:52 +0100 Subject: [PATCH] Bug 39055: wip --- C4/Auth.pm | 11 +++++++++++ koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt | 1 + 2 files changed, 12 insertions(+) diff --git a/C4/Auth.pm b/C4/Auth.pm index c376d0e35c2..529dfd4582a 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -215,6 +215,16 @@ sub get_template_and_user { ); } + if ( my $query_string = $in->{query}->param('query_string') ) { + my %params = map { + my ($k, $v) = split /=/, $_, 2; + $k => $v; + } split /;/, $query_string; + while ( my ($attr, $value) = each %params ) { + $in->{query}->param($attr, $value); + } + } + my $session = get_session($sessionID); # If we enforce GDPR and the user did not consent, redirect @@ -1457,6 +1467,7 @@ sub checkauth { $template->param( login => 1, INPUTS => \@inputs, + query_string => $query->query_string(), script_name => get_script_name(), casAuthentication => C4::Context->preference("casAuthentication"), shibbolethAuthentication => $shib, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt index 4a0a2109049..8020eb9b197 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt @@ -169,6 +169,7 @@ [% NEXT IF INPUT.name == "branch" %] [% END %] +

-- 2.43.0