You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
All internal links which are added via Polaris components end up opening in a new tab, and do not use the proper shopify admin/app URL. Instead they open a URL with the backend server host name.
Example:
<Link url="/pagename">Click Me</Link>
Expected click behavior:
Same browser window
URL should be https://admin.shopify.com/store/my-store/apps/my-app/pagename
Actual click behavior:
New tab opened
URL is https://<backend server host name>/pagename
I think the bug is in the PolarisProvider.jsx. The change in this commit switched to using window.open for the click handler for internal links, which caused the new behavior. The old App Bridge v3 version (using navigate()) worked fine.
I believe the proper fix is to do this in PolarisProvider.jsx:
Hi - I'm using the frontend react template as part of a Ruby/Rails app created with the Shopify App Template for Ruby (https://github.com/Shopify/shopify-app-template-ruby).
Problem:
All internal links which are added via Polaris components end up opening in a new tab, and do not use the proper shopify admin/app URL. Instead they open a URL with the backend server host name.
Example:
<Link url="/pagename">Click Me</Link>
Expected click behavior:
https://admin.shopify.com/store/my-store/apps/my-app/pagename
Actual click behavior:
https://<backend server host name>/pagename
I think the bug is in the PolarisProvider.jsx. The change in this commit switched to using
window.open
for the click handler for internal links, which caused the new behavior. The old App Bridge v3 version (usingnavigate()
) worked fine.I believe the proper fix is to do this in PolarisProvider.jsx:
The text was updated successfully, but these errors were encountered: