Remove instant search query from url

i wanted to remove instant search query from url.
can i?
like-----#q=dia&idx=magento_default_products&p=0&is_v=1
URL should not be added in url bar after search
i want remove after # part

Hi,

To do that you need to remove the urlSync from instantsearch. Be aware that this will prevent you from refreshing the page and getting back the search in the same state.

If you are using magento1, remove the following lines: https://github.com/algolia/algoliasearch-magento/blob/bf5aa0df2e1440f0a551ce6bd1c6c6dbd5546637/js/algoliasearch/instantsearch.js#L56-L58

If you are using magento2, remove the following lines: https://github.com/algolia/algoliasearch-magento-2/blob/97c74fb2a51cbf7b5046e1065dcc191e69a7977c/view/frontend/web/instantsearch.js#L56-L59