Open ascherkus opened 1 year ago
In an embedded app having <a href="foo.txt" download="bar.txt"> appears to download the file as "foo.txt" as opposed to "bar.txt".
<a href="foo.txt" download="bar.txt">
When accessing the same page in a browser as opposed to the embedded Shopify app, the file is downloaded as "bar.txt" as expected.
Steps to reproduce the behaviour:
<a href="..." download="...">
href
The file is downloaded using the filename provided in the download attribute.
download
@shopify/app-bridge
3.7.4
@shopify/polaris
10.34.0
Add any other context about the problem here, such as your app’s configuration (Node, Next.js, Rails).
Describe the bug
In an embedded app having
<a href="foo.txt" download="bar.txt">
appears to download the file as "foo.txt" as opposed to "bar.txt".When accessing the same page in a browser as opposed to the embedded Shopify app, the file is downloaded as "bar.txt" as expected.
To Reproduce
Steps to reproduce the behaviour:
<a href="..." download="...">
in it (note thehref
must be on the same originExpected behaviour
The file is downloaded using the filename provided in the
download
attribute.Contextual information
Packages and versions
@shopify/app-bridge
@3.7.4
@shopify/polaris
@10.34.0
Platform
Additional context
Add any other context about the problem here, such as your app’s configuration (Node, Next.js, Rails).