Hi there, I’m trying to migrate my app to the new Polaris web components but it looks like the <s-link> doesn’t redirect (also the <s-button href=""> ).
I’ve tried with my ruby on rails app and a new app in remix
I’ve also found this problem with the <s-link> component:
<s-link href="shopify:admin/settings/checkout/editor/profiles/178328142114?page=profile&context=apps">Open profile page</s-link> redirect to an about:blank page and throws this error:
Failed to launch 'shopify:admin/themes/178328142114/editor?previewPath=%2Faccount' because the scheme does not have a registered handler.
@Liam-Shopify We are still encountering this issue, on both the <s-link> and <s-button> component. Our stack is an Express app rendering HTML, with components being included via <script> tags.
Any guidance or suggestions would be greatly appreciated. Thank you!
The problem is with all of them, none is redirecting me to any of my app pages
I had to manually manage the navigation behaviour by setting the onclick to Turbo.visit(...) (ruby on rails application)
EDIT: I’ve found the problem. I had a custom client.entry.ts, which I did not updated. If after upgrading to the new template you’re facing such issues, make sure that you also follow all those steps: Upgrading from Remix | React Router
I don’t know if this is related but after upgrading to React Router and Polaris web components, the app menu on the left isn’t on the left nav anymore. They are inline links on the page at the top. I’m using the web component for the links.
Additionally, they are not opening the pages. If I type in the url of the page myself, the page loads but when I click on the link, it goes to the log in page and I see an error in the terminal:
Missing or invalid shop, redirecting to login path | {shop: null}