THIS IS ARCHIVED DOCUMENTATION

RedirectionActions (Deprecated)

The redirection action creators.

Loader Function

loadRedirectionActions

Loads the redirection reducer and returns possible action creators.

Parameters

  • engine: SearchEngine

    The headless engine.

Returns RedirectionActionCreators: The redirection action creators.

RedirectionActionCreators

checkForRedirection

Preprocesses the query for the current headless state, and updates the redirection URL if a redirect trigger was fired in the query pipeline.

Parameters

Returns AsyncThunkAction<string, CheckForRedirectionActionCreatorPayload, AsyncThunkSearchOptions<RedirectionState$1>>: A dispatchable action.

CheckForRedirectionActionCreatorPayload

Properties

  • defaultRedirectionUrl: string

    The default URL to redirect the user to.