mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 00:15:46 +01:00
relative path fix missing ;
This commit is contained in:
@@ -60,7 +60,8 @@ define('navigator', ['forum/pagination'], function(pagination) {
|
||||
};
|
||||
|
||||
function generateUrl(index) {
|
||||
var parts = window.location.pathname.split('/');
|
||||
var pathname = window.location.pathname.replace(config.relative_path, '');
|
||||
var parts = pathname.split('/');
|
||||
return parts[1] + '/' + parts[2] + '/' + parts[3] + (index ? '/' + index : '');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user