Fix trailing slash in public domain suffix

This commit is contained in:
JonnyWong16 2021-01-21 17:50:12 -08:00
parent eb0e3f5afe
commit 6b013da697
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -2934,7 +2934,11 @@ $(document).ready(function() {
if (clear){
$('#http_base_url').suffix("");
} else {
$('#http_base_url').suffix($('#http_root').val());
var suffix = $('#http_root').val();
if (suffix && !suffix.startsWith('/')) {
suffix = '/' + suffix;
}
$('#http_base_url').suffix(suffix);
}
}
setBaseURLSuffix();
@ -3017,7 +3021,7 @@ $(document).ready(function() {
baseURLSet();
$('#http_base_url').change(function () {
baseURLSet();
baseURLSet();
});
function newsletterUploadEnabled() {