InstantSearch v4 routing not updating url

Following this tutorial, I’ve implemented custom routing. My createURL function returns ${baseUrl}c/${categoryPath}${queryString}; For stateMapping, Im using instantsearch.stateMappings.simple().

Url gets updated when testing in localhost but not with ngrok.io. routing: true works in both cases but I need custom routing to work.

Using:

  • InstantSearch.js 4.14.0
  • algoliasearch-lite.umd.js 4.8.5

EDIT:
Nevermind, something else was the issue. Feel free to delete the post.