---
title: "HX-Current-URL"
description: "Contains browser URL when request started"
---

The `HX-Current-URL` request header contains the browser's URL when the request was made.

Use it to understand page context or build relative URLs.

## Usage

The header is included as follows:

```http
HX-Current-URL: https://example.com/products
```


Read the current URL from the request:

```python
current_url = request.headers.get('HX-Current-URL')
```
