mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: inf scroll with subfolder install
This commit is contained in:
@@ -83,7 +83,7 @@ define('forum/infinitescroll', function () {
|
||||
return;
|
||||
}
|
||||
loadingMore = true;
|
||||
var url = config.relative_path + '/api' + location.pathname;
|
||||
var url = config.relative_path + '/api' + location.pathname.replace(new RegExp('^' + config.relative_path), '');
|
||||
var hookData = { url: url, data: data };
|
||||
$(window).trigger('action:infinitescroll.loadmore.xhr', hookData);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user