@@ -, +, @@ and 'OpacPublic' syspref combination. ---------- 'GoogleOpenIDConnect' (under Administration) to 'Yes'. opac-user.pl (bad) -- on kohadevbox remember to restart all! Plack is unforgiving. :) redirect to opac-main.pl (good) -- notice this is a level better than required. :) --- opac/svc/auth/googleopenidconnect | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) --- a/opac/svc/auth/googleopenidconnect +++ a/opac/svc/auth/googleopenidconnect @@ -216,8 +216,16 @@ elsif ( defined $query->param('code') ) { my ( $userid, $cookie, $session_id ) = checkauth( $query, 1, {}, 'opac', $email ); if ($userid) { # A user with this email is registered in koha + + #handle redirect to main.pl, for private opac + my $uri; + if (C4::Context->preference('OpacPublic') ) { + $uri = '/cgi-bin/koha/opac-user.pl'; + } else { + $uri = '/cgi-bin/koha/opac-main.pl'; + } print $query->redirect( - -uri => '/cgi-bin/koha/opac-user.pl', + -uri => $uri, -cookie => $cookie ); } --