Vue js 2 how routing how to go to search page without query

Using vue js 2 and i want to be able to go to the search page even if the query param is missing

e.g if i go /search?query=77 it will show the search page, but if i go /search it will redirect to the page i was already on

here is my code

<ais-instant-search :search-client="searchClient" index-name="product_lines" :routing="routing" :insights="true">...

data() {
        return {
            searchClient: algoliasearch('xxxxxxxx', 'xxxxxxxxxxxxx'),
            routing: {
                router: historyRouter(),
                stateMapping: singleIndexMapping('product_lines'),
            },
        };
    },

Thanks