Fixed some 404 errors when using Part-DB without URL rewriting.

Fixed problems with the ajaxUI. Also added an ENV option that RedirectController redirects you to index.php/en page version.
This commit is contained in:
Jan Böhmer 2019-10-03 00:45:02 +02:00
parent 2c34c5f9cb
commit 280b2d4427
5 changed files with 45 additions and 3 deletions

View file

@ -76,7 +76,11 @@ class AjaxUI {
console.info("AjaxUI started!");
this.BASE = $("body").data("base-url") + "/";
this.BASE = $("body").data("base-url");
//If path doesn't end with slash, add it.
if(this.BASE[this.BASE.length - 1] !== '/') {
this.BASE = this.BASE + '/';
}
console.info("Base path is " + this.BASE);
//Show flash messages