Updated the download link to retain file extension.

Updated the download URL to retain the file extension. Before, when you would download the file it would not append the file extension, this will fix that.
This commit is contained in:
Kenneth C 2019-02-22 12:23:06 -05:00 committed by GitHub
parent 27cbe26936
commit 961700390a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -140,7 +140,7 @@ class AssetInfo extends React.Component {
<a
className={'link--primary'}
href={`${assetCanonicalUrl}.${fileExt}`}
download={name}
download={`${name}.${fileExt}`}
>
Download
</a>