> For the complete documentation index, see [llms.txt](https://readme.directual.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://readme.directual.com/web-pages/setting-up-pages-layout/subpages-and-url-parameters.md).

# Subpages and URL Parameters

### Page URL Parameters

You can add URL parameters to the page:

![URL parameters configuration](/files/pwZnNO3hN3zHRs1PR4GL)

If you visit the page with the following address (for example):

![](/files/RS9KCiMZIcQ2UpDGAomG)

You will have values for parameters `category == main`, `id == 0005`. You can use these values by applying `{{HttpRequest.category}}` and `{{HttpRequest.id}}` in:

* [Components](/template-system/basics-of-template-system/templating-techniques-for-web-pages.md#url-parameters) on the page
* [API-endpoint](/api-integrations/api-endpoints-security-layer.md) filters

Additionally, you can set up a custom layout for each of these subpages.

### Setting Up Custom Layout for Subpages

![](/files/Vk5a99sw0Xv5wkZG4JWD)

You can configure a custom layout for each subpage or use the default one. To navigate between pages and subpages, simply use the [Link Button component](/web-pages/components/link-button.md).

[Cards](/web-pages/components/legacy-components/cards.md#purposes-of-the-component) and [Table](/web-pages/components/table.md#purposes-of-the-component) components have an option to open objects in subpages:

![](/files/oZVzb2o2DMYUSQSbBWJY)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://readme.directual.com/web-pages/setting-up-pages-layout/subpages-and-url-parameters.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
