diff --git a/src/server/routing/router-stadspas-external-consumer.ts b/src/server/routing/router-stadspas-external-consumer.ts index 5b1a636fa..a62c80d9a 100644 --- a/src/server/routing/router-stadspas-external-consumer.ts +++ b/src/server/routing/router-stadspas-external-consumer.ts @@ -100,11 +100,16 @@ async function sendAdministratienummerResponse( const maFrontendUrl = getFromEnv('MA_FRONTEND_URL')!; const nonce = getFromEnv('BFF_AMSAPP_NONCE')!; + const logoutUrl = generateFullApiUrlBFF( + authRoutes.AUTH_LOGOUT_DIGID, + {}, + getFromEnv('BFF_OIDC_BASE_URL') + ); const baseRenderProps = { nonce, urlToImage: `${maFrontendUrl}/img/logo-amsterdam.svg`, urlToCSS: `${maFrontendUrl}/css/amsapp-landing.css`, - logoutUrl: generateFullApiUrlBFF(authRoutes.AUTH_LOGOUT), + logoutUrl, }; if (