mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
fix pagination after jquery 3.0 update
cache: false in $.ajax breaks the query string by adding _=timestamp the url results in `page.com/category/2/slug&page=2?_=timestamp`
This commit is contained in:
@@ -35,6 +35,8 @@ pagination.create = function(currentPage, pageCount, queryObj) {
|
||||
|
||||
queryObj = queryObj || {};
|
||||
|
||||
delete queryObj._;
|
||||
|
||||
var pages = pagesToShow.map(function(page) {
|
||||
queryObj.page = page;
|
||||
return {page: page, active: page === currentPage, qs: qs.stringify(queryObj)};
|
||||
|
||||
Reference in New Issue
Block a user