claudehohl / Stikked

An advanced and beautiful pastebin written in PHP
992 stars 220 forks source link

Search should reset pagination #551

Open The-Compiler opened 3 years ago

The-Compiler commented 3 years ago

Let's say I'm on https://paste.the-compiler.org/lists/135 - i.e. on page 10 of my recent pastes.

If I now use the search form to search for "locale", I land on https://paste.the-compiler.org/lists/135?search=locale which tells me "There have been no Pastes :(" - but https://paste.the-compiler.org/lists/0?search=locale actually has matches! In other words, searching should always result in a /lists/0?search=... page, rather than reusing the page number from the previous page.