My original code uses** @Shopify_77 /app-bridge-react**. Snippet below.
import { NavigationMenu } from '@shopify/app-bridge-react'
...
...
return (
<NavigationMenu
navigationLinks={[
{
label: 'Menu 1',
destination: '/menu1',
},
{
label: 'Menu 2',
destination: '/menu2',
},
{
label: 'Menu 3',
destination: '/menu3',
},
]}
matcher={(link, location) => link.destination === location.pathname}
/>
)
And it is working in the Shopify Admin navigation:
But, Shopify recommends to use the and the way to do it is by adding it to the tag.
<head>
<ui-nav-menu>
<a href="/" rel="home">Home</a>
<a href="/templates">Templates</a>
<a href="/settings">Settings</a>
</ui-nav-menu>
</head>
I can’t figure out how to add code snippet to the tag. I am using app embed blocks. I tried adding it above my {% schema %} but it didn’t work.

