155
votes
Accepted
How does Stack Overflow do pagination?
Well, the whole process is pretty complicated, but I'll try and answer you without writing a post that's as many pages (see what I did there?) as the last Game of Thrones book.
Assumptions
For the ...
19
votes
Accepted
How can I view the posts in the middle of the "[1][2][3][4][5] ... [28760]" pages?
Yes, the expected way is to keep clicking to navigate to the page immediately before the ellipsis (…), which will load a new set of page links.
However, you can always manually manipulate the page ...

Samuel LiewMod
- 76.2k
13
votes
Navigation through questions pages is broken
Yeah, confirmed on Chrome Latest:
Console error:
VM286:5 Uncaught TypeError: cmds.unshift is not a function
at eval (eval at <anonymous> (jquery.min.js:2), <anonymous>:5:10)
at ...
11
votes
Default page size when searching is 1 instead of 15/30/50
Clicking on desired page size again to fixes the issue.
Looks like a bug - probably someone changed how this value is stored. I have low expectations for quick root cause or fix as there is ...
Community wiki
9
votes
Pagination: Haven't I seen this question before?
This is far from trivial to implement.
Say you take the "select all questions older than x" approach, what would the page number then be?
If each page contains 10 items, and there are 23 questions ...
9
votes
Accepted
Navigation through questions pages is broken
This is fixed.
There were multiple components at play:
There's an advertising data structure on the site that surprisingly turns from an array to an object when an async script loads.
When new-nav ...
7
votes
Accepted
Android tag questions out of sync around page 20 (pagination)
I have pushed a "reload" instruction to the servers, which will hopefully fix this for now, but we are aware that this is an occasional bug. The good news is that we are in the process of completely ...
7
votes
New-Nav page size resets when changing list pages or tabs on a new or refreshed page
Can you please fix this?
In the minimized code:
full.en.js?v=65f133f16fbe
line 4539 (chrome "pretty print").
The page size is never set and will therefore be defaulted in setPaging:
function D(e) {
...
7
votes
Accepted
Default page size when searching is 1 instead of 15/30/50
As of the build going out now, is no longer possible to set page sizes outside 15, 30, and 50 (1-50 was valid before). The page sizes are validated before going into your user preferences and on the ...
5
votes
Default page size when searching is 1 instead of 15/30/50
It seems to hold the last value you use. Asking for ?pagesize=4 will hold that value as default for pagination.
That's my favourite bug rogue feature of the week, I must say.
Community wiki
4
votes
Comment links use the wrong GET arg for the visible tab
The bug here is that the URL path doesn't include the answer ID. If it did, the system could find it no matter which page it ended up on - and to be clear, there's never a guarantee that an answer ...
3
votes
Accepted
Jobs Pagination - Scroll Up on page switch
Thanks for reporting this! It was a side-effect of some refactoring I've been doing the last couple of weeks - previously the pagination would reload the entire page whereas now it works AJAXily (in ...
3
votes
There is no link to page 6 on page 4
Since we always have a link to the first page, and we always show 5 adjacent pages, this is, in fact, consistent.
There is no gap between page 1 and 2, so to show the 5 adjacent pages, we go up to 5 ...
1
vote
SO Jobs pagination at top too
When I search for product management incognito I get a bunch of product manager and project manager jobs... I see just one developer job on the first page of results.
Even when I'm logged in and I ...
1
vote
Pagination won't work properly
Yeah, I can reproduce with the following workflow:
Go to home
Set posts per page to 50
Go to bounties tab
50 posts are shown on page 1
Go to page 2 and you are shown 15 posts and the posts per page ...
1
vote
Accepted
New Nav Bug: Number of Items per Page Resets When Switching Tabs
This has been fixed and will be deployed in rev 2015.12.17.3996 (meta) and rev 2015.12.17.3102 (main).
1
vote
Accepted
SO Jobs - Pagination page links are offset
Thanks for the report. I made some changes yesterday to eliminate some unnecessary queries to Elastic search for suggestions. Sadly that surfaced an off-by-one bug in an alternate code path that, ...
1
vote
Accepted
New-Nav page size resets when changing list pages or tabs on a new or refreshed page
Going to call this status-completed since the issue is gone. We killed that flavor of nav, but learned a lot and are bringing the most popular features back from it. We'll make sure the paging issues ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
pagination × 32bug × 24
new-nav × 13
status-completed × 7
feature-request × 5
support × 4
discussion × 3
stack-overflow-jobs × 3
bounty × 2
homepage × 2
question-lists × 2
tags × 1
questions × 1
answers × 1
design × 1
comments × 1
profile-page × 1
status-bydesign × 1
search × 1
deleted-answers × 1
user-interface × 1
user-experience × 1
status-norepro × 1
status-deferred × 1
status-review × 1