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

# Interface: RouteTableConfig

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

A route table's url options: the matcher compiler's, plus the
[\`trailingSlash\`](../../url-config/interfaces/RouterUrlConfig.md#trailingslash) policy,
which reads each state's kind.

## Extends

* [`UrlMatcherCompilerConfig`](../../matcher/interfaces/UrlMatcherCompilerConfig.md)
* `Pick`<[`RouterUrlConfig`](../../url-config/interfaces/RouterUrlConfig.md), `"trailingSlash"`>

## Properties

| Property | Type | Description | Inherited from | Defined in |
| ------ | ------ | ------ | ------ | ------ |
|  `defaultSquashPolicy?` | `NonNullable`<`string` | `boolean` | `undefined`> | Squash policy for defaulted params that don't declare one (default false); value type pinned to core's UrlConfig.defaultSquashPolicy. | [`UrlMatcherCompilerConfig`](../../matcher/interfaces/UrlMatcherCompilerConfig.md).[`defaultSquashPolicy`](../../matcher/interfaces/UrlMatcherCompilerConfig.md#defaultsquashpolicy) | [url-config.ts:36](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/url-config.ts#L36) |
|  `trailingSlash?` | [`TrailingSlashPolicy`](../../index/interfaces/TrailingSlashPolicy.md) | Which spelling of a trailing slash is canonical, per kind of state; needs `strict: false`, so both spellings match first. A server mount answers the other spelling with a `308` redirect to the canonical one, and a router this config is applied to formats `href()` and the urls it pushes in the canonical spelling. **Example** `import type { RouterUrlConfig } from 'ui-router-server/url-config'; // pages at /releases/pkg/, response states at the url they were asked for export const urlConfig = { strict: false, trailingSlash: { pages: 'always' }, } satisfies RouterUrlConfig;` | [`RouterUrlConfig`](../../url-config/interfaces/RouterUrlConfig.md).[`trailingSlash`](../../url-config/interfaces/RouterUrlConfig.md#trailingslash) | [url-config.ts:57](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/url-config.ts#L57) |
