---
url: >-
  https://lit-ui-router.dev/reference/ui-router-server/redirects/interfaces/CompiledRoute.md
---
[ui-router-server](../../index.md) / [redirects](../index.md) / CompiledRoute

# Interface: CompiledRoute

Defined in: [redirects.ts:127](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/redirects.ts#L127)

One url-addressable state, compiled by [compileRoutes](../functions/compileRoutes.md).

## Properties

| Property | Type | Description | Defined in |
| ------ | ------ | ------ | ------ |
|  `matcher` | [`CompiledMatcher`](../../matcher/interfaces/CompiledMatcher.md) | The compiled pattern, for [!exec | exec](#matcher) and [!format | format](#matcher). | [redirects.ts:133](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/redirects.ts#L133) |
|  `name` | `string` | The state name the pattern came from. | [redirects.ts:129](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/redirects.ts#L129) |
|  `pattern` | `string` | The full pattern: this state's url appended to its ancestors'. | [redirects.ts:131](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/redirects.ts#L131) |
|  `redirectStatusCode?` | [`RedirectStatusCode`](../type-aliases/RedirectStatusCode.md) | The state's declared redirect status (see [RouteDeclaration.redirectStatusCode](RouteDeclaration.md#redirectstatuscode)). | [redirects.ts:137](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/redirects.ts#L137) |
|  `redirectTo?` | `string` | [`RedirectTarget`](RedirectTarget.md) | The state's declared redirect, carried through unresolved (see [RouteDeclaration.redirectTo](RouteDeclaration.md#redirectto)). | [redirects.ts:135](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/redirects.ts#L135) |
