diff --git a/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/applications.js b/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/applications.js index bff3774d05..6c492d452a 100755 --- a/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/applications.js +++ b/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/applications.js @@ -268,11 +268,11 @@ module.controller('ApplicationDetailCtrl', function($scope, $document, realm, ap Notifications.error("You must specify at least one redirect uri"); } else { // automatically add redirects to web origins - var parser = $document.createElement('a'); + var parser = document.createElement('a'); var originSet = {}; for (var i = 0; i < $scope.application.redirectUris.length; i++) { parser.href = $scope.application.redirectUris[i]; - var origin = href.protocol + "//" + href.host; + var origin = parser.protocol + "//" + parser.host; originSet[origin] = true; } for (var key in originSet) { diff --git a/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-detail.html b/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-detail.html index 600f72e7a1..7f81b5c71f 100755 --- a/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-detail.html +++ b/forms/common-themes/src/main/resources/theme/admin/base/resources/partials/application-detail.html @@ -90,7 +90,7 @@ data-ng-model="application.adminUrl"> -