Questions and discussions about using the Shopify CLI and Shopify-built libraries.
Hello,
Whenever I run this code, instead of the main navigation item (the app name) being highlighted, the first nav item is highlighted. I tried different versions of the app bridge library at unpkg.com as well as the new CDN version, but it's always the same problem.
It was working for about 24 hrs a few days ago, so maybe I should just wait for Shopify to fix the problem.
var installLink = AppBridge.actions.AppLink.create(app, {
label: 'Install',
destination: '/?status=install',
});
var navigationMenu = AppBridge.actions.NavigationMenu.create(app, {
items: [installLink]
});
navigationMenu.set({active: undefined});
Solved! Go to the solution
This is an accepted solution.
Looks like the problem was the query parameter destination /?status=install. I changed it to /install
This is an accepted solution.
Looks like the problem was the query parameter destination /?status=install. I changed it to /install