aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar garronej <[email protected]>2023-04-20 05:09:52 +0200
committerGravatar garronej <[email protected]>2023-04-20 05:09:52 +0200
commit305792b91dbd71fe7f718e06462e694a3dd630c5 (patch)
treee17802b8c27851c300a35bb896d87a897a0c3ca9 /src
parentUpdate yarn.lock (diff)
Remove refferer_uri, it dosen't work
Diffstat (limited to 'src')
-rw-r--r--src/App/App.tsx21
1 files changed, 7 insertions, 14 deletions
diff --git a/src/App/App.tsx b/src/App/App.tsx
index fd1bc9a..99346c3 100644
--- a/src/App/App.tsx
+++ b/src/App/App.tsx
@@ -46,23 +46,16 @@ function ContextualizedApp() {
// Set the language the user will get on the account page
accountUrl = addParamToUrl({
- "url": accountUrl,
- "name": "kc_locale",
- "value": "en"
+ url: accountUrl,
+ name: "kc_locale",
+ value: "en"
}).newUrl;
- // Enable to redirect to the app from the account page we'll get the referrer_uri under kcContext.url.referrerUri
- // see: https://technology.first8.nl/add-manage-account-link-keycloak-redhat-sso/
+ // Enable to redirect to the app from the account page we'll get kcContext.url.referrerURI
accountUrl = addParamToUrl({
- "url": accountUrl,
- "name": "referrer",
- "value": keycloakClient
- }).newUrl;
-
- accountUrl = addParamToUrl({
- "url": accountUrl,
- "name": "referrer_uri",
- "value": window.location.href
+ url: accountUrl,
+ name: "referrer",
+ value: keycloakClient
}).newUrl;
return (