Link to managed-pricing pricing_plans page from NavMenu

In my app I want a “Subscription” link going the the managed-pricing-plans page from within the component.
The https://admin.shopify.com/store//charges//pricing_plans page is outside the app, so I can not link directly to it from the NavMenu Link component without getting the app-path prepended to the url.
Also I cannot add an onClick to the Link elements inside NavMenu and do a window.open inside a function.
I also can not setup a serverside route with a serverside redirect because it will load the pricing_plan page inside the iframe.
Looks like I have to render an extra route that triggers a clientside redirect from the browser with window.open(…, “_top” ) to get there.

Do I miss something?

1 Like

Hey @devkai :waving_hand: - hopefully I’m understanding correctly here, but are you looking to just set up a nav link in the admin menu to redirect to your subscription page? I think this is likely a limitation of the Managed App Pricing option, but I’ll do some more digging into this and loop back with a confirmation/next steps.

Speak with you as soon as I’ve got a bit more info to share on my end here.

Hey @devkai - just following up here after speaking with some colleagues. Can confirm that right now, it’s not possible to create navigation items that link to other pages in the admin. Those pages do have to link to your app rather than external Shopify/3P controlled pages in the admin.

Right now, the best option would be to create the UX yourself (using manual pricing management) if you wanted to fully customize the UI, or add a link to the Shopify Managed page somewhere inside of your app if it’s embedded.

Hopefully this helps a bit, let me know if I can answer any other questions or help out further on my end here.

thanks for looking into it, and sorry for not checking the preivew of my post with all the pseudo-code removed :wink:
I check if I can find a place in my app to link to it, but would be nice if this is possible one day from withing the nav-menu.

1 Like