Building a Purple Experience
views.json

Redirect

2min

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.

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:

an example of Redirect View






Updated 23 Sep 2024
Did this page help you?