# 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: 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://readme.directual.com/web-pages/setting-up-pages-layout/subpages-and-url-parameters.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.
