Trying to preserve existing parameters in the URL with Routing on

Can you help me with an issue?
I have routing turned on.
I need to know how to preserve the existing parameters in the url.

For example:
When you start typing into the search bar, I lose the “ID=297” from the end of the url.
The URL now looks like this:[query]=Search

Is there a way to keep any existing parameters in the url?

This is using instantsearch.js 4.

Routing is fully configurable in InstantSearch.js. You can follow the Routing URLs guide to better understand how to make it work with your URL structure.