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

# Class: ServerLocationConfig

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

`@uirouter/core`'s `MemoryLocationConfig` with the `isHtml5` its location
plugin passes honored, which the shipped class ignores: it assigns
`html5Mode` as an own property in its constructor, so a subclass overrides
it by assigning too.

## Extends

* `MemoryLocationConfig`

## Constructors

### Constructor

```ts
new ServerLocationConfig(router?, isHtml5?): ServerLocationConfig;
```

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

Takes the router and `isHtml5` a location plugin passes; html5 unless told otherwise.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `router?` | [`UIRouter`](https://ui-router.github.io/core/docs/latest/classes/_router_.uirouter.html) |
| `isHtml5?` | `boolean` |

#### Returns

`ServerLocationConfig`

#### Overrides

`MemoryLocationConfig.constructor`
