diff --git a/src/components/Button/Button.js b/src/components/Button/Button.js index 0d3f24d..3fa7f5a 100644 --- a/src/components/Button/Button.js +++ b/src/components/Button/Button.js @@ -8,7 +8,7 @@ import { trackMatomoEvent } from '../../analytics/matomo'; import { addShadow } from '../../utils'; function Button(props) { - const { name, href, displayName, logo, styles, alt, icon } = props; + const { name, href, displayName, logo, styles, alt, icon, rels } = props; const handleClick = () => { const eventName = `${name}-button`; @@ -30,7 +30,7 @@ function Button(props) { className={(styles ? 'button' : `button button-${name}`) + addShadow()} href={href} target={runtimeConfig?.BUTTON_TARGET || '_blank'} - rel="noopener noreferrer" + rel={rels ? rels : 'noopener noreferrer'} onClick={handleClick} style={styles ? styles : undefined} title={alt || displayName} @@ -59,4 +59,5 @@ Button.propType = { logo: string, icon: string, styles: object, + rels: string, }; diff --git a/src/components/Home/Home.js b/src/components/Home/Home.js index a7bdc4f..e416522 100644 --- a/src/components/Home/Home.js +++ b/src/components/Home/Home.js @@ -410,6 +410,7 @@ function Home(props) {