# Context Menu for Navigation

The Context Menu can be used to navigate between different pages in the application. It can generate the needed links for you through its `UrlField` when [data binding](https://www.telerik.com/blazor-ui/documentation/components/contextmenu/data-binding/overview).

To use the Context Menu for navigating between pages:

* Add the ContextMenu to your application and [choose a target](https://www.telerik.com/blazor-ui/documentation/components/contextmenu/overview) or [show it with your own code](https://www.telerik.com/blazor-ui/documentation/components/contextmenu/integration#know-the-target-and-adjust-items).
* Provide a collection of models that describe the pages you want the user to navigate to.
* Populate its `UrlField` with the corresponding data from the model or provide a `Url` property in the model.

> caption Use the Context Menu to navigate between pages

<demo metaUrl="client/contextmenu/navigation/" height="300"></demo>

## Notes

* The `UrlField` has a default value (`Url`) and that will be used if present in the model even if you do not define it explicitly.
* The component uses the `NavigationManager` from the framework to perform the navigation based on the value from the `UrlField`.

  * If you have a template that adds anchors, or use a click event to navigate the user yourself, this may lead to double navigation and errors, especially if your model has a field called `Url`. To avoid such problems, either let the Telerik component do the navigation and remove the application-specific code that does it as well, or remove the URL setting (either rename the model field, or point the `UrlField` to a non-existing field).

## See Also

* [Context Menu Overview](https://www.telerik.com/blazor-ui/documentation/components/contextmenu/overview)
* [Context Menu Data Binding](https://www.telerik.com/blazor-ui/documentation/components/contextmenu/data-binding/overview)
* [Context Menu Templates](https://www.telerik.com/blazor-ui/documentation/components/contextmenu/templates/overview)
