An event published by a Router when a redirect was called from a component or a data loader.

interface RedirectEvent {
    controller: RouteController<any, any, any>;
    to: string | To;
    type: "redirect";
}

Properties

Properties

controller: RouteController<any, any, any>

A controller from which an event originates.

to: string | To

A location or a URL to which a redirect should be made.

type

The event type.