Fix interface for issuer URI without trailing slash
parent
e6130872a9
commit
a1a45aa36a
|
@ -65,6 +65,9 @@
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#stats').hide();
|
$('#stats').hide();
|
||||||
var base = $('base').attr('href');
|
var base = $('base').attr('href');
|
||||||
|
if (base.substr(-1) !== '/') {
|
||||||
|
base += '/';
|
||||||
|
}
|
||||||
|
|
||||||
$.getJSON(base + 'api/stats/summary', function(data) {
|
$.getJSON(base + 'api/stats/summary', function(data) {
|
||||||
var stats = data;
|
var stats = data;
|
||||||
|
|
|
@ -548,6 +548,9 @@ $(function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
var base = $('base').attr('href');
|
var base = $('base').attr('href');
|
||||||
|
if (base.substr(-1) !== '/') {
|
||||||
|
base += '/';
|
||||||
|
}
|
||||||
$.getJSON(base + '.well-known/openid-configuration', function(data) {
|
$.getJSON(base + '.well-known/openid-configuration', function(data) {
|
||||||
app.serverConfiguration = data;
|
app.serverConfiguration = data;
|
||||||
var baseUrl = $.url(app.serverConfiguration.issuer);
|
var baseUrl = $.url(app.serverConfiguration.issuer);
|
||||||
|
|
Loading…
Reference in New Issue