From 740943290cfe3e0be38fbcd19a02e1fe7c81af67 Mon Sep 17 00:00:00 2001 From: Jeroen Rosenberg Date: Fri, 16 May 2014 13:46:46 +0200 Subject: [PATCH] URI encode clientId for referrer parameter --- integration/js/src/main/resources/keycloak.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/js/src/main/resources/keycloak.js b/integration/js/src/main/resources/keycloak.js index 046c9c1b95..1a6b545d2b 100755 --- a/integration/js/src/main/resources/keycloak.js +++ b/integration/js/src/main/resources/keycloak.js @@ -131,7 +131,7 @@ var Keycloak = function (config) { kc.createAccountUrl = function(options) { var url = getRealmUrl() + '/account' - + '?referrer=' + kc.clientId + + '?referrer=' + encodeURIComponent(kc.clientId) + '&referrer_uri=' + encodeURIComponent(adapter.redirectUri(options)); return url;