mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
fixes #356 - issue where accessing a NodeBB using a different machine name
from one that it was set up with causing template data to not load, as it was being accessed via absolute url, instead of relative url
This commit is contained in:
@@ -38,8 +38,8 @@ var ajaxify = {};
|
||||
window.onscroll = null;
|
||||
// end
|
||||
|
||||
|
||||
var url = url.replace(/\/$/, "");
|
||||
// Remove trailing slash
|
||||
url = url.replace(/\/$/, "");
|
||||
|
||||
var hash = window.location.hash;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user