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:
parent
bb65e4e018
commit
1f90b4e15c
2 changed files with 11 additions and 35 deletions
|
@ -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--;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue