156 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 ...
Haney's user avatar
  • 33.9k
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 Liew's user avatar
  • 78.1k
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 ...
Tanner's user avatar
  • 22.5k
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 ...
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 ...
Cerbrus's user avatar
  • 71.8k
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 ...
Brian Nickel's user avatar
  • 27.3k
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 ...
Marc Gravell's user avatar
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) { ...
stefan.s's user avatar
  • 3,498
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 ...
Nick Craver's user avatar
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.
4 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 ...
Oded's user avatar
  • 495k
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 ...
Shog9's user avatar
  • 158k
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 ...
Benjamin Hodgson's user avatar
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 ...
Dean Ward's user avatar
  • 4,793
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 ...
Tanner's user avatar
  • 22.5k
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, ...
Dean Ward's user avatar
  • 4,793
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 ...
Nick Craver's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible