diff --git a/modules/saml/src/Controller/SingleLogout.php b/modules/saml/src/Controller/SingleLogout.php index cf8a4784d5ba08edf1b3f285a6407724a6bae37d..ade116df8fe90cb3663ad8dc042f2a7981f4d0f9 100644 --- a/modules/saml/src/Controller/SingleLogout.php +++ b/modules/saml/src/Controller/SingleLogout.php @@ -94,10 +94,10 @@ class SingleLogout $idpEntityId = $this->mdHandler->getMetaDataCurrentEntityID('saml20-idp-hosted'); $idp = $this->idp::getById('saml2:' . $idpEntityId); - if ($request->request->has('ReturnTo')) { + if ($request->query->has('ReturnTo')) { return new RunnableResponse( [$idp, 'doLogoutRedirect'], - [$httpUtils->checkURLAllowed($request->request->get('ReturnTo'))] + [$httpUtils->checkURLAllowed($request->query->get('ReturnTo'))] ); }