relative path fix missing ;

This commit is contained in:
barisusakli
2015-01-12 18:52:41 -05:00
parent 1f674f10e2
commit 02dbce57fb
3 changed files with 7 additions and 9 deletions

View File

@@ -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 : '');
}