Fix missing slash if base_url set

This commit is contained in:
Rosiak
2016-01-11 13:14:20 +01:00
parent 2469621a58
commit 05734803df

View File

@@ -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>');