mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
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:
parent
2c34c5f9cb
commit
280b2d4427
5 changed files with 45 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue