diff --git a/web-src/src/pages/PageSearch.vue b/web-src/src/pages/PageSearch.vue index 4f8b51b7..54317a9b 100644 --- a/web-src/src/pages/PageSearch.vue +++ b/web-src/src/pages/PageSearch.vue @@ -15,6 +15,12 @@

+
+ +
{{ recent_search }}
@@ -148,6 +154,7 @@ export default { data () { return { search_query: '', + smart_query: false, tracks: { items: [], total: 0 }, artists: { items: [], total: 0 }, albums: { items: [], total: 0 }, @@ -211,7 +218,8 @@ export default { var searchParams = { 'type': route.query.type, - 'query': route.query.query, + 'query': this.smart_query ? undefined : route.query.query, + 'expression': this.smart_query ? route.query.query : undefined, 'media_kind': 'music' } @@ -226,7 +234,7 @@ export default { this.albums = data.albums ? data.albums : { items: [], total: 0 } this.playlists = data.playlists ? data.playlists : { items: [], total: 0 } - this.$store.commit(types.ADD_RECENT_SEARCH, searchParams.query) + this.$store.commit(types.ADD_RECENT_SEARCH, route.query.query) }) },