Skip to main content

redirect

Callable

  • redirect(...args: [options: { destination: string; isPermanent?: boolean }]): Promise<void>

  • Redirects the user to the given destination. On the server side a 307 or 308 (depending on the isPermanent flag) redirect response is generated. On the client side a window.location.href change is performed.


    Parameters

    • rest...args: [options: { destination: string; isPermanent?: boolean }]

    Returns Promise<void>