Closed slugbucket closed 4 years ago
Track as feature/feat0016
Care needs to be taken when using the session vaoue for the page number because if searching for a solution from, say, page 29, the returned results will likely only have one page's worth of values which will confuse (and break) the offset calculation and pagination. The session page number is reset in the event that no results are returned; this might break an empty search.
The session value for the page number is only reset in the event of an error, so if a search resturns an empty result going back to the solutions page will go back to the previous numbered page; the session is onl;t reset when an exception occurs.
Editing or adding a solution always returns to the page page in the list. It would be better to return to the same page being displayed prior to the update.