WIP: improve search #1
@ -98,7 +98,7 @@ export class Navbar extends Component<any, State> {
|
||||
}
|
||||
fillSearchField() {
|
||||
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 = {
|
||||
page: Number(splitPath[4]),
|
||||
q: splitPath[3],
|
||||
|
Loading…
x
Reference in New Issue
Block a user