---
url: >-
  https://lit-ui-router.dev/v1/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

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.
