Is URL in Menu API

This API call allows you to test to see if the current URL or a specific URL is part of a specific menu.

This can be useful if you're displaying one of two navigation menus automatically but there is a chance that the same link may be in multiple navigation menus.

This API call returns a true or false boolean value.

Learn more about APIs.

Minimum Tag

{{ _api.navigation.isUrlInMenu.key('menuKey') }}

API Tag Parameters

ParameterDescription
key Required

The key of the navigation menu to look in

Type: String

Example:
key('main')
url A specific URL to check. Use this only if needing to check a URL that is not the current page's URL. The URL needs to start with "/".

Type: String

Example:
url('/this/page')