Hi everyone,
I’m building a Shopify embedded app using React + Node.js and using the App Bridge NavigationMenu.
My navigation links are configured like this:
const navigationLinks = [
{ label: "Subscriptions", destination: "/subscriptions" },
{ label: "All Bundles", destination: "/" },
{ label: "Product List", destination: "/list" },
{ label: "Gift Products", destination: "/gift-products" },
{ label: "Analytics", destination: "/analytics" },
{ label: "Unsplit Orders", destination: "/orders" },
{ label: "Settings", destination: "/settings" },
{ label: "Instructions", destination: "/instructions" },
];
The issue is that when I navigate to a nested route such as:
/list/123
the Shopify admin sidebar highlights “All Bundles” (/) instead of “Product List” (/list).
Expected behavior:
/list→ Product List selected/list/123→ Product List selected
Actual behavior:
/list/123→ All Bundles selected
Has anyone experienced this issue with NavigationMenu route matching? Is there a recommended way to make parent navigation items stay active for nested routes?
Any guidance would be appreciated.
Thanks!