---
url: >-
  https://lit-ui-router.dev/reference/ui-router-server/index/type-aliases/TrailingSlash.md
---
[ui-router-server](../../index.md) / [ui-router-server](../index.md) / TrailingSlash

# Type Alias: TrailingSlash

```ts
type TrailingSlash = "always" | "never" | "as-requested";
```

Defined in: [trailing-slash.ts:15](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/trailing-slash.ts#L15)

How one kind of state spells the trailing slash of its url: `'always'`
ends the path with `/`, `'never'` drops it, and `'as-requested'` keeps the
spelling a request used and formats urls as their pattern spells them.
