# Forward

Leads the request to a different page.

This function acts like the location functionality except that the relocation is done directly on the server and not the browser

## Method Signature

```
Forward(template=[string])
```

### Arguments

| Argument   | Type     | Required | Description                                                   | Default |
| ---------- | -------- | -------- | ------------------------------------------------------------- | ------- |
| `template` | `string` | `true`   | The logical path to which the request should be forwarded to. |         |

## Examples

## Related

* [FileUpload](/boxlang-framework/modularity/web-support/reference/built-in-functions/web/fileupload.md)
* [FileUploadAll](/boxlang-framework/modularity/web-support/reference/built-in-functions/web/fileuploadall.md)
* [GetHTTPRequestData](/boxlang-framework/modularity/web-support/reference/built-in-functions/web/gethttprequestdata.md)
* [GetHTTPTimeString](/boxlang-framework/modularity/web-support/reference/built-in-functions/web/gethttptimestring.md)
* [GetPageContext](/boxlang-framework/modularity/web-support/reference/built-in-functions/web/getpagecontext.md)
* [HtmlFooter](/boxlang-framework/modularity/web-support/reference/built-in-functions/web/htmlfooter.md)
* [HtmlHead](/boxlang-framework/modularity/web-support/reference/built-in-functions/web/htmlhead.md)
* [Location](/boxlang-framework/modularity/web-support/reference/built-in-functions/web/location.md)
* [SetEncoding](/boxlang-framework/modularity/web-support/reference/built-in-functions/web/setencoding.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://boxlang.ortusbooks.com/boxlang-framework/modularity/web-support/reference/built-in-functions/web/forward.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
