Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Describe the bug
I'm not sure if it should redirect to the error page by default – depending on the use-case, the behavior should be configurable. Maybe the dev wants to show a custom error message instead or redirect to the URL of the last existing page.
I have implemented a new
@lukasbestle the reason why I flagged this at first it's because the old K2 behaviour was to redirect to the 404 page.
Which make sense in my opinion since you're trying to access a page that doesn't exist.
Returning the last page also breaks every infinite scroll implementation and that's how I noticed the error in the first place.
IMO, the default behaviour should be to return a 404 and then maybe add the possibility to overwrite that if someone wants to handle this specific situation in a different way.