From a93fef4c71d405fb7548e7d2601320ed0512d27c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 27 Sep 2017 13:55:30 -0300 Subject: [PATCH] Bug 19373: CAS logout - Redirect to the previous page (Intranet) Signed-off-by: Matthias Meusburger Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- C4/Auth_with_cas.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/C4/Auth_with_cas.pm b/C4/Auth_with_cas.pm index e14c6e63b9..6e7bb93612 100644 --- a/C4/Auth_with_cas.pm +++ b/C4/Auth_with_cas.pm @@ -202,9 +202,11 @@ sub _url_with_get_params { my $query = shift; my $type = shift; - my $uri_base_part = ($type eq 'opac') ? - C4::Context->preference('OPACBaseURL') . get_script_name() : - C4::Context->preference('staffClientBaseURL'); + my $uri_base_part = + ( $type eq 'opac' ) + ? C4::Context->preference('OPACBaseURL') + : C4::Context->preference('staffClientBaseURL'); + $uri_base_part .= get_script_name(); my $uri_params_part = ''; foreach my $param ( $query->url_param() ) { -- 2.39.5