# Location

Relocates to a different pages.

## Method Signature

```
Location(URL=[string], addToken=[boolean], statusCode=[integer])
```

### Arguments

| Argument     | Type      | Required | Description                                                                                                     | Default |
| ------------ | --------- | -------- | --------------------------------------------------------------------------------------------------------------- | ------- |
| `URL`        | `string`  | `true`   | The URL of web page to open.                                                                                    |         |
| `addToken`   | `boolean` | `false`  | clientManagement must be enabled.                                                                               |         |
| `statusCode` | `integer` | `false`  | <p>The HTTP status code.<br>Values:<br>- 300<br>- 301<br>- 302<br>- 303<br>- 304<br>- 305<br>- 306<br>- 307</p> | `302`   |

## Examples

## Related

* [FileUpload](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/fileupload)
* [FileUploadAll](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/fileuploadall)
* [Forward](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/forward)
* [GetHTTPRequestData](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/gethttprequestdata)
* [GetHTTPTimeString](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/gethttptimestring)
* [GetPageContext](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/getpagecontext)
* [HtmlFooter](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/htmlfooter)
* [HtmlHead](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/htmlhead)
* [SetEncoding](https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/setencoding)
