Polaris web components redirecting to auth

Hey Shopify team,

We’re troubleshooting an issue with a subset of our customers that are getting kicked out to /auth/login when clicking on s-link or s-button components. This is browser-independent, and they still have the issue in incognito. We got access to their store and do not get the issue ourselves.

Is it possible this is due to content distribution of the Polaris CDN and that they would be receiving a version of Polaris that has an issue with the redirection?

I say this because we had an issue with s-button in the past, specifically when used in the s-page slots. After moving it out it had resolved the issue. From my understanding, the redirect logic is delicate within the context of the iFrame.

Environment

  • React Router
  • Embedded app
  • Polaris web components

Thank you for any insight,

Edi

Hm, I’m pretty doubtful this would be the root cause.

I say this because we had an issue with s-button in the past, specifically when used in the s-page slots. After moving it out it had resolved the issue. From my understanding, the redirect logic is delicate within the context of the iFrame.

Ah, see, I could potentially see this being more of an indication of where it could be messing up; there’s a lot of interplay between app-bridge and the Polaris components in this interaction, and it’s possible that there’s something funky going on there.

Without a repro, it’s hard to say what’s happening. But if you do see patterns like the above, that’s worth calling out / letting us know, so we have an idea of where to look.