intercept

fun intercept(options: NavigationInterceptOptions = definedExternally)(source)

The intercept() method of the NavigateEvent interface intercepts this navigation, turning it into a same-document navigation to the destination URL.

MDN Reference