App reviews, troubleshooting, and recommendations
Hi,
I'm trying to migrate to the CDN version of app-bridge.
In the new version <ui-nav-menu> element has replaced <NavigationMenu> component. The documentation looked straight forward, but iframe reloads with every navigation.
Everything was fine with <NavigationMenu>. I used it like this:
<NavigationMenu navigationLinks={[
{label: 'Dashboard', destination: '/dashboard'},
{label: 'Settings', destination: '/settings'},
]} matcher={(link, location) => link.destination === location.pathname} />
The new version:
<ui-nav-menu> <a href="/" rel="home">App</a> <a href="/dashboard">Dashboard</a> <a href="/settings">Settings</a> </ui-nav-menu>
But app reloads and looses all state on every navigation.
App frontend is a React SPA. Shopify sends a request to the app backend (https://app-domain.com). App checks authentication and redirects to the endpoint that serves frontend static files https://app-domain.com/front
Does anyone have any idea on what to do?
i have the very same issue
You should implement custom router for sync host and iframe urls
https://shopify.dev/docs/api/app-bridge/previous-versions/app-bridge-from-npm/using-react
In app-bridge-react 4.x.x is not possible to use this approach
Have you found some solution?
Same problem <a> should be active for ten routes before refresh it is active but after refresh it makes home active but page and url are same.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025