You can use our guide on editing instantSearch page events to edit the routing of your web page.
Note: in the examples, we refer to instantSearch. In Magento, by default this will be in algoliaBundle.instantSearch. Also note that the examples in instantSearch are not directly portable to your Magento instance. You should review your Magento url scheme and make changes to the routes as needed.