You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the parent framework has a base tag and I pass a relative url to make a post download, but the resolved url is not right . Can jquery.fileDownload support this feature ?
index.html
<basehref="/award/">
app.js
file-download(url="export/awards")
When I browse http://localhost/award/abc/def , the download url resolved to http://localhost/award/abc/def/export/awards.
Then I found that jquery.fileDownload used iframe to make a post request in iframe , but the iframe did not inherit the base url . Here is my solution:
Hey there, thats a cool idea. If you'd like to send me a pull request doing this would be happy to merge it. It should not be the default behavior as it would break other people currently using the library but some sort of a boolean "inheritBasePath". you could also accomplish that pretty readily just looking at window.location and passing it into filedownload (Since you have control over the path). cheers, John
When the parent framework has a base tag and I pass a relative url to make a post download, but the resolved url is not right . Can jquery.fileDownload support this feature ?
index.html
app.js
When I browse
http://localhost/award/abc/def
, the download url resolved tohttp://localhost/award/abc/def/export/awards
.Then I found that jquery.fileDownload used iframe to make a post request in iframe , but the iframe did not inherit the base url . Here is my solution:
The text was updated successfully, but these errors were encountered: