# url

The `url` condition.

True when the page URL matches a glob (`*` within a path segment, `**` across segments, `?` one character), or a regular expression given as `{ "matches": … }`.

Type: `string or object`

## Keys

| Key | Type | Description |
|---|---|---|
| `url.matches` | `string` | A regular expression the full page URL must match. |

## Example

```json
{
  "url": "**/dashboard"
}
```

From the contract fixture `login-2fa-checkpoint-report`, a program the test suite validates.
