A redirect to a location.

Use redirect to throw a Redirect instance.

Constructors

Properties

Constructors

  • Creates a new Redirect instance.

    Parameters

    • to: string | To

      A location or a URL to redirect to.

    Returns Redirect

Properties

to: string | Location

A location or a URL to redirect to.