Merge pull request #1346 from praseodym/fix-admin-interface-without-trailing-slash

Fix interface for issuer URI without trailing slash
pull/1337/merge
Justin Richer 2018-01-22 05:54:25 -05:00 committed by GitHub
commit 1c7b9d5b44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -64,7 +64,10 @@
$(document).ready(function() {
$('#stats').hide();
var base = $('base').attr('href');
var base = $('base').attr('href');
if (base.substr(-1) !== '/') {
base += '/';
}
$.getJSON(base + 'api/stats/summary', function(data) {
var stats = data;

View File

@ -548,6 +548,9 @@ $(function() {
});
var base = $('base').attr('href');
if (base.substr(-1) !== '/') {
base += '/';
}
$.getJSON(base + '.well-known/openid-configuration', function(data) {
app.serverConfiguration = data;
var baseUrl = $.url(app.serverConfiguration.issuer);