Configure custom navigation behavior for single-page applications
window.top.open(url, '_self')
.
Use this function to override the default navigation behavior and integrate with your application’s routing system.
This is particularly useful for Single Page Applications (SPAs) that use client-side routing libraries like React Router, Vue Router, or Angular Router.
null
to restore default behavior.setCustomNavigate(null)
to revert to default page reload behavior