redirect

fun redirect(url: String, options: NavigationNavigateOptions = definedExternally)(source)

The redirect() method of the NavigationPrecommitController interface redirects the browser to a specified URL and specifies history behavior and any desired state information.

MDN Reference


fun redirect(url: URL, options: NavigationNavigateOptions = definedExternally)(source)