New Polaris web component `s-link` doesn't redirect

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

<s-link href="/app/additional">Test</s-link>

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.

Thank you for reporting this. We have a fix in progress.

1 Like

Hi @Anthony_Frehner, any news here?

Hi @baggio_giacomo - I believe the team recently shipped an update related to this. Are you still experiencing this issue?

Hi @Liam-Shopify,

Yes, the issues are still present on both remix and rails app

Any update here? The <s-button> still does not work with a href attribute on the Remix app.

On reviewing, it appears a new bit of documentation is available to deal with this:

Special navigation effect is required for the Remix app. Sorted. Thanks

@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!

Yeah, I’ve opened this topic 2 months and no fix has been released. That’s absurd.

@Joshua_Lucas for now I think that you have to manage the navigation manually by setting the onclick property on every link or button.

Hi @baggio_giacomo

Is the issue still with s-link, s-button, or s-clickable?

Hi @Liam-Shopify

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)