THIS IS ARCHIVED DOCUMENTATION
RedirectionActions (Deprecated)
RedirectionActions (Deprecated)
In this article
In this article
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
-
payload:
CheckForRedirectionActionCreatorPayload
The action creator payload.
Returns AsyncThunkAction<string, CheckForRedirectionActionCreatorPayload, AsyncThunkSearchOptions<RedirectionState$1>>
: A dispatchable action.
Related Types
CheckForRedirectionActionCreatorPayload
Properties
-
defaultRedirectionUrl:
string
The default URL to redirect the user to.