Remove refferer_uri, it dosen't work

This commit is contained in:
garronej 2023-04-20 05:09:52 +02:00
parent dd755c316b
commit 305792b91d

View file

@ -46,23 +46,16 @@ function ContextualizedApp() {
// Set the language the user will get on the account page // Set the language the user will get on the account page
accountUrl = addParamToUrl({ accountUrl = addParamToUrl({
"url": accountUrl, url: accountUrl,
"name": "kc_locale", name: "kc_locale",
"value": "en" value: "en"
}).newUrl; }).newUrl;
// Enable to redirect to the app from the account page we'll get the referrer_uri under kcContext.url.referrerUri // Enable to redirect to the app from the account page we'll get kcContext.url.referrerURI
// see: https://technology.first8.nl/add-manage-account-link-keycloak-redhat-sso/
accountUrl = addParamToUrl({ accountUrl = addParamToUrl({
"url": accountUrl, url: accountUrl,
"name": "referrer", name: "referrer",
"value": keycloakClient value: keycloakClient
}).newUrl;
accountUrl = addParamToUrl({
"url": accountUrl,
"name": "referrer_uri",
"value": window.location.href
}).newUrl; }).newUrl;
return ( return (