---
title: "RouterLinkDefinition"
generated: true
---
<GenerationInfo sourceFile="packages/admin-ui/src/lib/core/src/providers/nav-builder/nav-builder-types.ts" sourceLine="287" packageName="@vendure/admin-ui" />

A function which returns the router link for an [ActionBarItem](/reference/admin-ui-api/action-bar/action-bar-item#actionbaritem) or [NavMenuItem](/reference/admin-ui-api/nav-menu/nav-menu-item#navmenuitem).

```ts title="Signature"
type RouterLinkDefinition = ((route: ActivatedRoute, context: ActionBarContext) => any[]) | any[]
```
