Skip to content

Commit a1a45aa

Browse files
committed
Fix interface for issuer URI without trailing slash
1 parent e613087 commit a1a45aa

File tree

2 files changed

+7
-1
lines changed
  • openid-connect-server-webapp/src/main/webapp

2 files changed

+7
-1
lines changed

openid-connect-server-webapp/src/main/webapp/WEB-INF/views/home.jsp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@
6464
6565
$(document).ready(function() {
6666
$('#stats').hide();
67-
var base = $('base').attr('href');
67+
var base = $('base').attr('href');
68+
if (base.substr(-1) !== '/') {
69+
base += '/';
70+
}
6871
6972
$.getJSON(base + 'api/stats/summary', function(data) {
7073
var stats = data;

openid-connect-server-webapp/src/main/webapp/resources/js/admin.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,9 @@ $(function() {
548548
});
549549

550550
var base = $('base').attr('href');
551+
if (base.substr(-1) !== '/') {
552+
base += '/';
553+
}
551554
$.getJSON(base + '.well-known/openid-configuration', function(data) {
552555
app.serverConfiguration = data;
553556
var baseUrl = $.url(app.serverConfiguration.issuer);

0 commit comments

Comments
 (0)