https://developer.mozilla.org/en-US/docs/Web/API/NavigationPrecommitController/redirect
NavigationPrecommitController: redirect() method - Web APIs | MDN
The redirect() method of the NavigationPrecommitController interface redirects the browser to a specified URL and specifies history behavior and any desired...
web apisredirectmethodmdn