Skip to Content
ChangelogLists stay on their feet when the page number in the address bar is nonsense

Lists stay on their feet when the page number in the address bar is nonsense

Every paged list — people, leads, invoices, the console’s own screens — reads its page number from the address bar. Ask for page 4, and if there is no page 4 you see an empty list and can click back. Ask for a page number with twenty digits in it, and until now you saw an error screen instead: the number was too large for the database to work with, and the page gave up rather than coming back empty.

That number is now capped before the list is read, so an absurd page behaves like any other page past the end of the data: an empty list, with the rest of the screen intact. Real page numbers are untouched — the cap sits far beyond anything a list could reach — so paging through a list works exactly as it did.

This closes a way to knock a screen over from the address bar alone, and it holds for lists that have not been built yet: the guard lives with the shared list machinery, not in each screen.

Last updated on