Type Alias RedirectContextInfo

RedirectContextInfo: Readonly<{
    from: string;
    params: IndexedParams;
    pathname: string;
}>

A context information for a redirect operation.

Type declaration

  • from: string

    The original path from which the redirect is happening.

  • params: IndexedParams

    An object containing URL parameters related to the redirect.

  • pathname: string

    The pathname of the new URL to which the redirect is directed.