/** * Goes to another page with a full page load. Only for when the whole app must start again — * after signing out or switching who is signed in — or from code outside a component; anywhere * else use `useRouter().push()`. */ export function hardNavigate(path: string) { window.location.assign(new URL(path, window.location.origin).href); }