I’m doing QA on this new app I’ve created using CI. With pagination implemented, what’s the typical way of dealing with invalid page numbers? Nothing stops me from manually changing the offset in the URL manually. So if the max is 20, if I modify to 100 what should happen? I’m brainstorming on ways to check if the offset is valid and if it isn’t redirect somewhere or display an error message (not sure if I care to do so).
Share
If anyone comes across this later, here’s how I tackled the issue.