So here are two cases. One which is successful when clicking on the Home side navigation menu, and the other - unsuccessful when clicking on the App title. They both should work the same.
Successful case when using Home side navigation
Open app from admin
Navigate to Page name using side navigation
Navigate to Home side navigation menu
Click browser back (expect to navigate to Page Name)
Click browser back (expect to navigate to Home)
Click browser back (expect to navigate to Admin)
Case where browser back is no longer working after clicking on App title navigation
Open app from admin
Navigate to Page name using side navigation menu
Click on the App title in the side navigation menu to go to home page
Click browser back (expect to navigate to Page Name, but nothing happens)
Looking at the chrome history we can see that there is additional Page name record in the history stack after clicking on the App title. Look at the image.
Expected behaviour
Both cases mentioned above should work the same. Shopify design guidelines mentions that App title navigation should be used for the landing page instead of one defined in the side navigation menu component e.g. Home. But if the App title navigation works differently than Home, we are unable to use side navigation without Home option in it.
Describe the bug
It is unable to go back in history using browser back when
App Title
navigation is used. The one in the image below.To Reproduce
Steps to reproduce the behaviour:
So here are two cases. One which is successful when clicking on the
Home
side navigation menu, and the other - unsuccessful when clicking on theApp title
. They both should work the same.Successful case when using
Home
side navigationPage name
using side navigationHome
side navigation menuCase where browser back is no longer working after clicking on
App title
navigationPage name
using side navigation menuApp title
in the side navigation menu to go to home pageLooking at the chrome history we can see that there is additional
Page name
record in the history stack after clicking on the App title. Look at the image.Expected behaviour
Both cases mentioned above should work the same. Shopify design guidelines mentions that App title navigation should be used for the landing page instead of one defined in the side navigation menu component e.g. Home. But if the App title navigation works differently than Home, we are unable to use side navigation without Home option in it.
Contextual information
Packages and versions
@shopify/app-bridge
@^3.3.2
@shopify/app-bridge-react
@^3.3.2
@shopify/app-bridge-utils
@^3.3.2
@shopify/polaris
@^9.11.0
react-router-dom
@^6.3.0
Platform
@itissible/matrixify