refactor search route and change default page to 0

that thing was utterly insane, and i am not sorry for saying this
This commit is contained in:
Milim 2023-06-29 18:49:38 +02:00
parent bb65e4e018
commit 1f90b4e15c
2 changed files with 11 additions and 35 deletions

View file

@ -30,8 +30,8 @@ function navigate_backward() {
let page = parseInt(searchParams.get('page'));
if (isNaN(page)) {
page = 1;
} else if (page > 1) {
page = 0;
} else if (page > 0) {
page--;
}