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

# Interface: ServerLocationOptions

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

Options for [\`installServerLocation\`](../variables/installServerLocation.md).

## Extends

* [`ServerLocationPluginOptions`](ServerLocationPluginOptions.md)

## Properties

| Property | Type | Description | Inherited from | Defined in |
| ------ | ------ | ------ | ------ | ------ |
|  `baseHref?` | `string` | The prefix the app is mounted under, added to every href. Pass [\`url\`](#url) without it — the router matches paths relative to the mount, exactly as a `<base href>` client does. | - | [location.ts:107](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/location.ts#L107) |
|  `html5Mode?` | `boolean` | Whether hrefs are paths (`/sheet/7B`) rather than fragments (`#/sheet/7B`). Defaults to `true`; pass `false` for a hash client. | [`ServerLocationPluginOptions`](ServerLocationPluginOptions.md).[`html5Mode`](ServerLocationPluginOptions.md#html5mode) | [location.ts:52](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/location.ts#L52) |
|  `url?` | `string` | The requested path, query included, as the server received it — `/sheet/7B?tab=notes`. | - | [location.ts:101](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/location.ts#L101) |
|  `urlConfig?` | [`RouterUrlConfig`](../../url-config/interfaces/RouterUrlConfig.md) | The url options the router compiles its urls with, applied through [\`applyUrlConfig\`](../../url-config/functions/applyUrlConfig.md) before anything else, so a mount's `config` passes as is. | - | [location.ts:113](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/location.ts#L113) |
