Skip to main content
By default, navigating within your embedded instance of NRAI doesn’t affect the client’s browser history or viewed URL. NRAI only provide a handler, that trigger on every route change in the iframe.

Automatically Sync URL

You can use the following snippet when configuring the SDK, which will implement a handler that syncs the NRAI iframe with your browser:
The following snippet listens when the user clicks backward, so it syncs the route back to the iframe using NRAI.navigate and in the handler, it updates the URL of the browser.
If you use NRAI.navigate({ route: '/flows' }) this will tell the embedded sdk where to navigate to. Here is the list for routes the sdk can navigate to: You can call the navigate method after initializing the sdk using the configure sdk: