Closed gil-- closed 1 year ago
Hi @gil-- , thanks for bringing it up.
The hostOrigin
property wasn't meant to be part of App-Bridge's public API. Unfortunately, we didn't make it explicit.
(Hyrum's Law never gets old).
In any case, there are multiple ways to get the myshopify.com domain:
shop
query string parameter.jwt-decode
or any similar library will do the trick)Please let me know if this solves your problem.
Closing this. @gil-- , if you have any follow-up questions, please feel free to re-open this issue.
Hi there, I am using laravel 8 with laravel/ossiset package. I have follow this link => https://clickysoft.com/shopify-laravel-app-development/ to install and configure all the things. The app is working fine on this URL => https://[STORE NAME].myshopify.com/admin/apps/[APP NAME]/ When i click on any of the left side links of shopify like Products and Orders the URL is changed to => https://admin.shopify.com/store/[STORE NAME]/products?selectedView=all If I want to switch back to the APP the URL is Chnaged to => https://admin.shopify.com/store/[STORE NAME]/apps/[APP NAME] Then the APP shows only blank screen. Any help will be appriciated.
@CodaemonHaroon Can I have the app id? I can take a look. It's not a sensitive info but if you don't want to send it here, you can ping me on partners slack.
@henrytao-me I have refer this link to solve the issues. And the App is working. https://github.com/gnikyt/laravel-shopify/issues/1248 [Reffered link] The code of filipembcruz and it is working. But now i am facing the Ajax call issues. It is always redirecting to 302 error page. I have disabled the VerrifyCsrfToken middleware but no luck.
I don't have experience with the PHP library. I am afraid that I cannot help much here.
Describe the bug
Unable to retrieve the myShopify url via hostOrigin on latest app bridge as Shopify now returns https://admin.shopify.com for all stores. Can we fix this or introduce a new parameter to assist with retrieval of the shop url.
To Reproduce
Steps to reproduce the behaviour:
Use
@shopify/app-bridge-react
and:hostOrigin will be https://admin.shopify.com.
Expected behaviour
I'd expect host origin to be the shop's url. Otherwise, please surface myshopify as a new parameter.
Packages and versions
List the relevant packages you’re using, and their versions. For example:
@shopify/app-bridge
@3.7.2
@shopify/app-bridge-react
@3.7.2
@shopify/polaris
@^10.27.2
Platform
Additional context
Add any other context about the problem here, such as your app’s configuration (Node, Next.js, Rails).