---
url: >-
  https://lit-ui-router.dev/reference/ui-router-navigation-location-plugin/functions/navigationLocationPlugin.md
---
[ui-router-navigation-location-plugin](../index.md) / navigationLocationPlugin

# Function: navigationLocationPlugin()

```ts
function navigationLocationPlugin(router, options?): LocationPlugin;
```

Defined in: [index.ts:424](https://github.com/simshanith/lit-ui-router/blob/6e47ef8d8a4b24e99c074fb5c8c9cfaddfdb36a4/packages/navigation-location-plugin/src/index.ts#L424)

A [UIRouterPlugin](https://ui-router.github.io/core/docs/latest/interfaces/_interface_.uirouterplugin.html) that gets/sets the current location using the browser's `location` and `navigation` apis

## Parameters

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

## Returns

[`LocationPlugin`](https://ui-router.github.io/core/docs/latest/interfaces/_vanilla_interface_.locationplugin.html)
