FROM CACHE - en_header

Shopify App dev: how to create a 'Back' button on my app admin interface to exit the app?

11 0 6

Hi everyone, I'm a beginner of Shopify App dev, I'm using `shopify node` to develop a simple app.

On the app admin interface, I want to add a 'Back' button into `TitleBar` of `shopily/app-bridge-react`, and clicking this button will exit my app and go back to the shop's admin interface.

How to implement this button?


What I can think of is, redirect the browser to `` after clicking this button, but I'm not sure if this is a good solution.

Please help!

Reply 1 (1)
Shopify Staff
Shopify Staff
58 13 27

Hi ,

Can you clarify your use case and why you'd want to add a back button? If your app is embedded then the merchant can always click away from the app, for example, they can click on the Apps link on the side bar to go back to their list of apps. On Shopify Mobile, a back button is automatically rendered to allow the merchant to exit the app. It's probably not necessary for your app to render its own back button.

Trish | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog