export const navigateTo = (url: string): void => window.location.assign(url) /** Moves on without keeping the current page in the browser history */ export const leaveFor = (url: string): void => window.location.replace(url)