> 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](https://3071851461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4Nnmtk9_gFGWOddsf6%2Fuploads%2FTHwEfWMCUKm9RAK7ybYp%2Fpage-settings.png?alt=media\&token=e8a23d5b-f780-4b0c-b71a-31a210550a42)

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

![](https://3071851461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4Nnmtk9_gFGWOddsf6%2Fuploads%2Fx78fOX0E96W42Ul8UQoH%2Furl.png?alt=media\&token=e0a3756e-0bb3-43e9-a58b-ace8c825267b)

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

![](https://3071851461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4Nnmtk9_gFGWOddsf6%2Fuploads%2FTWqheE50UMI4Tm3c1diC%2Fsubpages.gif?alt=media\&token=1f32007a-3517-46f4-9802-6a5c1f17118f)

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:

![](https://3071851461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4Nnmtk9_gFGWOddsf6%2Fuploads%2FbLyUSUxOthzVx94rgoDr%2Fcards_subpages.gif?alt=media\&token=9b5d31d8-e945-446e-8e7c-4ae151eca1b9)
