We are using hash part of the URL (fragment) to scroll to specific part of the page in our app. When we use navigate function form react-router and pass hash attribute, it is later then reflected in location object. But if we use use full page reload with hash attribute in parent page URL, it is not reflected in Iframe url and is missing in location object. This was working before.
To Reproduce
Steps to reproduce the behaviour:
Navigate to Home page of your app
Copy the url in your browser
Open new tab, paste the URL and add #some_value to the end of the URL and open it
Describe the bug
We are using hash part of the URL (fragment) to scroll to specific part of the page in our app. When we use navigate function form react-router and pass hash attribute, it is later then reflected in location object. But if we use use full page reload with hash attribute in parent page URL, it is not reflected in Iframe url and is missing in location object. This was working before.
To Reproduce
Steps to reproduce the behaviour:
#some_value
to the end of the URL and open itExpected behaviour
The location object should contain
hash: some_value
, because app bridge should sync it with Iframe URL.Contextual information
Packages and versions
List the relevant packages you’re using, and their versions. For example:
@shopify/app-bridge
@^3.3.2
@shopify/app-bridge-react
@^3.3.2
@shopify/app-bridge-utils
@^3.3.2
@shopify/polaris
@^9.19.0
react-router-dom
@^6.4.2
Platform
@itissible/matrixify