> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uselooop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Redirect

> This sub-variable is used to redirect the customer to a specific page. In combination with the root variable, it can be used to redirect the customer to a specific page based on the authentication status.

## Setup

This sub-variable can be used in the following way:

```html theme={null}
looop_on-login=redirect
```

```html theme={null}
redirect=PATH_TO_PAGE
```

#### Example

Lets say that we want that if someone is logged in, they should be redirected to the home page if they access the login page. We can use the following code:

```html theme={null}
looop_on-login=redirect
```

```html theme={null}
redirect=/
```
