Closed asacarter closed 1 month ago
Same issue with @shopify/polaris
12.19.2.
Button component from @shopify/polaris
with prop url
doesn't work also.
import { Button } from '@shopify/polaris'
<Button url='/path/to/page'>
Click to route
</Button>
Hi! We noticed there hasn’t been activity on this issue in a while. After 30 days, it will close automatically.
If it’s still relevant, or you have updates, comment and let us know. And don’t worry, you can always re-open later if needed.
Summary
From the documentation here, to maintain a session either
@remix-run/react
or@shopify/polaris
can be used.The
Link
component from@remix-run/react
works perfectly, while theLink
component from@shopify/polaris
does not add the token to the header in the request.I have created my own Remix app boilerplate rather than one created by Shopify. I'm not sure if this is something to do with the issue but I would expect both
Link
components to work in the same way.Expected behavior
The JWT should be added to the header of the Link request.
This is the headers for the request using the
Link
component from@remix-run/react
Actual behavior
This is the headers for the request using the
Link
component from@shopify/polaris
The request does not contain the authorization in the headers.
Steps to reproduce
This adds the auth header:
This does not:
Are you using React components?
Link
Polaris version number
^12.0.0
Browser
Chrome
Device
MacOS