WIP: improve search #1

Closed
rob wants to merge 26 commits from improve-search into master
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 16b1ffbe45 - Show all commits

View File

@ -98,7 +98,7 @@ export class Navbar extends Component<any, State> {
} }
fillSearchField() { fillSearchField() {
let splitPath: Array<string> = this.context.router.route.location.pathname.split("/"); let splitPath: Array<string> = this.context.router.route.location.pathname.split("/");
if (splitPath.length == 5 && splitPath[1] == 'search') if (splitPath.length == 7 && splitPath[1] == 'search')
this.state.searchParams = { this.state.searchParams = {
page: Number(splitPath[4]), page: Number(splitPath[4]),
q: splitPath[3], q: splitPath[3],