fixes #1524 - site.js determines the server address wrong
This commit is contained in:
@@ -113,10 +113,7 @@ var Dashboard = {
|
||||
// Try to get the server address from the browser url
|
||||
// This will preserve protocol, hostname, port and subdirectory
|
||||
var urlLower = window.location.href.toLowerCase();
|
||||
var index = urlLower.indexOf('/web');
|
||||
if (index == -1) {
|
||||
index = urlLower.indexOf('/dashboard');
|
||||
}
|
||||
var index = urlLower.lastIndexOf('/web');
|
||||
|
||||
if (index != -1) {
|
||||
return urlLower.substring(0, index);
|
||||
|
||||
Reference in New Issue
Block a user