• Throws a Redirect instance that redirects router to a location.

    Parameters

    • to: string | To

      A location or a URL to redirect to.

    Returns never