For information on how to add routing to your Magento instance, you can use our guide on editing InstantSearch page events to edit the routing of your web page.
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.