diff --git a/app/views/search/index.js b/app/views/search/index.js index 6fd6f63..968809a 100644 --- a/app/views/search/index.js +++ b/app/views/search/index.js @@ -10,6 +10,8 @@ export const searchView = (state, emit, i18n) => { if (controller.hasQuery && controller.queryIsNew) { controller.search(); + } else if (controller.state.lastSearch !== '') { + controller.appState.query.for = controller.state.lastSearch; } // Returning an array in a view allows non-shared parent HTML elements. @@ -29,7 +31,10 @@ export const searchView = (state, emit, i18n) => { ${!controller.doneSearching ? 'disabled' : null} > -