fix(ui): add download attribute to certificate links
This commit is contained in:
@@ -148,7 +148,8 @@ export function CertificatesBlock({ badge, title, description, certificates = de
|
|||||||
const wrapperProps = cert.pdfUrl ? {
|
const wrapperProps = cert.pdfUrl ? {
|
||||||
href: encodeURI(cert.pdfUrl),
|
href: encodeURI(cert.pdfUrl),
|
||||||
target: "_blank",
|
target: "_blank",
|
||||||
rel: "noopener noreferrer"
|
rel: "noopener noreferrer",
|
||||||
|
download: cert.pdfUrl.split('/').pop()
|
||||||
} : {};
|
} : {};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user