URI encode clientId for referrer parameter

This commit is contained in:
Jeroen Rosenberg 2014-05-16 13:46:46 +02:00
parent bde9944449
commit 740943290c

View file

@ -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;