From 34e52839f7947ff0ab7dad0397a3d0adadceac86 Mon Sep 17 00:00:00 2001 From: Bill Burke Date: Mon, 31 Aug 2015 13:17:45 -0400 Subject: [PATCH] KEYCLOAK-1721 --- .../theme/base/admin/resources/js/controllers/realm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/common-themes/src/main/resources/theme/base/admin/resources/js/controllers/realm.js b/forms/common-themes/src/main/resources/theme/base/admin/resources/js/controllers/realm.js index a33b84fd0a..3d907d8043 100755 --- a/forms/common-themes/src/main/resources/theme/base/admin/resources/js/controllers/realm.js +++ b/forms/common-themes/src/main/resources/theme/base/admin/resources/js/controllers/realm.js @@ -835,7 +835,7 @@ module.controller('RealmIdentityProviderCtrl', function($scope, $filter, $upload } }, true); - $scope.callbackUrl = $location.absUrl().replace(/\/admin.*/, "/realms/") + realm.realm + "/broker/" ; + $scope.callbackUrl = encodeURI($location.absUrl().replace(/\/admin.*/, "/realms/") + realm.realm + "/broker/") ; $scope.addProvider = function(provider) { $location.url("/create/identity-provider/" + realm.realm + "/" + provider.id);