redirect
Redirects the page to another page.
{{ redirect }}
Triggers a redirect to another given page, useful within conditional statements.
Sample Usage
{{ if !open }}
{{ redirect url="/?status=closed" }}
{{ endif }}
If the open
variable is not true, this will forward visitors to the homepage (with the status
GET variable set to closed
).
Parameters
This tag accepts the following parameters:
url
— the URL to redirect people to