From 1c91070d8b95bda6cf0e3e6e7113acbf1a16dfd0 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 9 Sep 2019 12:32:46 +0100 Subject: [PATCH] Bug 18506: (follow-up) Set redirect type to 303 This should ensure query parameters are passed through the redirection. --- C4/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 2e2eaaeee9..adf4cc9ea9 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -1340,7 +1340,7 @@ sub checkauth { #If shibOnly is enabled just go ahead and redirect directly if ( (($type eq 'opac') && C4::Context->preference('opacShibOnly')) || (($type ne 'opac') && C4::Context->preference('staffShibOnly')) ) { my $redirect_url = login_shib_url( $query ); - print $query->redirect($redirect_url); + print $query->redirect( -uri => "$redirect_url", -status => 303 ); safe_exit; } -- 2.20.1