mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix missing slash if base_url set
This commit is contained in:
@@ -112,7 +112,7 @@ $notifications = new ObjCache('notifications');
|
||||
<?php } ?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h3><a class="btn btn-default" href="<?php echo $config['base_url']; ?>notifications/archive">Show Archive</a></h3>
|
||||
<h3><a class="btn btn-default" href="<?php echo rtrim($config['base_url'], '/'); ?>/notifications/archive">Show Archive</a></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -164,7 +164,7 @@ $(function() {
|
||||
success: function (data) {
|
||||
if( data.status == "ok" ) {
|
||||
$("#message").html('<div class="alert alert-info">' + data.message + '</div>');
|
||||
window.location.href="<?php echo $config['base_url']; ?>notifications";
|
||||
window.location.href="<?php echo rtrim($config['base_url'], '/'); ?>/notifications";
|
||||
}
|
||||
else {
|
||||
$("#message").html('<div class="alert alert-info">' + data.message + '</div>');
|
||||
@@ -208,7 +208,7 @@ $(function() {
|
||||
success: function (data) {
|
||||
if( data.status == "ok" ) {
|
||||
$("#message").html('<div class="alert alert-info">' + data.message + '</div>');
|
||||
window.location.href="<?php echo $config['base_url']; ?>notifications";
|
||||
window.location.href="<?php echo rtrim($config['base_url'], '/'); ?>/notifications";
|
||||
}
|
||||
else {
|
||||
$("#message").html('<div class="alert alert-info">' + data.message + '</div>');
|
||||
@@ -227,7 +227,7 @@ $(function() {
|
||||
success: function (data) {
|
||||
if( data.status == "ok" ) {
|
||||
$("#message").html('<div class="alert alert-info">' + data.message + '</div>');
|
||||
window.location.href="<?php echo $config['base_url']; ?>notifications";
|
||||
window.location.href="<?php echo rtrim($config['base_url'], '/'); ?>/notifications";
|
||||
}
|
||||
else {
|
||||
$("#message").html('<div class="alert alert-info">' + data.message + '</div>');
|
||||
|
Reference in New Issue
Block a user