Redirect
Purple Experience
In the Purple Experience, the Redirect View can be used to either statically or dynamically redirect the user to a different page.
Note that Redirect in Views should not be used for content redirects, they are handled by the Purple Hub. Learn more about Purple Redirects
Field | Description |
---|---|
path* | Under which URL the page should be redirected. |
redirectTo* | The designated target view path to which it redirects. Can be either a string, i.e. the path to redirect to, or a NavigationAction, which allows additional configuration, such adding query params. |
condition | A condition which needs to be fulfilled if the redirect is to be performed. Redirect will always be performed if not specified. |
statusCode | In the context of Server-Side Rendering (SSR), when this code is used to send an HTTP redirect, it does not impact client-side routing. |
Here is an example of Redirect View:
