Avoid seeing homepage on existing search

This commit is contained in:
Chocobozzz 2020-09-24 09:53:19 +02:00
parent 66139e8166
commit c95f4b78f1
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 0 deletions

View File

@ -490,6 +490,9 @@
this.indexName = config.searchInstanceName
if (Object.keys(this.$route.query).length !== 0) {
// Speed up search done variable if the user came directly with a query
// So it does not see the homepage for a few ms
this.searchDone = true
this.loadUrl()
this.doSearch()
}