Fix usage of script_name (#2650)

This commit is contained in:
Maxime Besson 2022-06-25 10:38:04 +02:00
parent f4d5ac0e4f
commit 1986f730a7
2 changed files with 2 additions and 2 deletions

View File

@ -1407,7 +1407,7 @@ sub logout {
# for them.
# Redirect on logout page when all is done.
if ( $self->sendLogoutRequestToProviders( $req, $logout ) ) {
$self->{urldc} = $req->script_name . "?logout=1";
$req->urldc( $self->p->buildUrl({logout => 1}));
return PE_OK;
}

View File

@ -297,7 +297,7 @@ sub deleteSession {
# Redirect on logout page if no other target defined
if ( !$req->urldc and !$req->postUrl ) {
$self->logger->debug('No other target defined, redirect on logout');
$req->urldc( $req->script_name . "?logout=1" );
$req->urldc( $self->buildUrl( { logout => 1 } ) );
}
}
$req->userData( {} );