mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Fix trailing slash in public domain suffix
This commit is contained in:
parent
eb0e3f5afe
commit
6b013da697
1 changed files with 6 additions and 2 deletions
|
@ -2934,7 +2934,11 @@ $(document).ready(function() {
|
||||||
if (clear){
|
if (clear){
|
||||||
$('#http_base_url').suffix("");
|
$('#http_base_url').suffix("");
|
||||||
} else {
|
} 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();
|
setBaseURLSuffix();
|
||||||
|
@ -3017,7 +3021,7 @@ $(document).ready(function() {
|
||||||
baseURLSet();
|
baseURLSet();
|
||||||
|
|
||||||
$('#http_base_url').change(function () {
|
$('#http_base_url').change(function () {
|
||||||
baseURLSet();
|
baseURLSet();
|
||||||
});
|
});
|
||||||
|
|
||||||
function newsletterUploadEnabled() {
|
function newsletterUploadEnabled() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue