diff --git a/src/customizations/components/theme/Footer/Footer.jsx b/src/customizations/components/theme/Footer/Footer.jsx index 7f8678d..94ce942 100644 --- a/src/customizations/components/theme/Footer/Footer.jsx +++ b/src/customizations/components/theme/Footer/Footer.jsx @@ -15,6 +15,11 @@ import EUflag from '../../../../../theme/site/assets/images/europe-flag.svg'; * @returns {string} Markup of the component */ class Footer extends Component { + onLinkClick(evt, url) { + evt.preventDefault(); + window.location = url; + } + render() { return ( @@ -244,18 +249,40 @@ class Footer extends Component {
- + + this.onLinkClick( + evt, + 'https://www.eea.europa.eu/contact-us', + ) + } + > + this.onLinkClick( + evt, + 'https://www.eea.europa.eu/contact-us', + ) + } > Ask your question
- + + this.onLinkClick( + evt, + 'https://www.eea.europa.eu/media/', + ) + } + > Media enquiries
@@ -293,7 +320,15 @@ class Footer extends Component {

Engineered by:  - + + this.onLinkClick( + evt, + 'https://www.eea.europa.eu/help/contact-info', + ) + } + > EEA Web Team

@@ -313,6 +348,9 @@ class Footer extends Component {

+ this.onLinkClick(evt, 'https://www.eea.europa.eu/code') + } title="Code for developers" > Code for developers @@ -326,7 +364,14 @@ class Footer extends Component {

- Legal notice + + this.onLinkClick(evt, 'https://www.eea.europa.eu/legal/') + } + > + Legal notice +

@@ -343,6 +388,12 @@ class Footer extends Component {

+ this.onLinkClick( + evt, + 'https://www.eea.europa.eu/login_form', + ) + } title="Log in to CMS" > CMS login diff --git a/src/customizations/components/theme/Logo/Logo.jsx b/src/customizations/components/theme/Logo/Logo.jsx index ab3224f..5a4ccb2 100644 --- a/src/customizations/components/theme/Logo/Logo.jsx +++ b/src/customizations/components/theme/Logo/Logo.jsx @@ -32,11 +32,16 @@ const messages = defineMessages({ const Logo = () => { const lang = useSelector((state) => state.intl.locale); const intl = useIntl(); + const url = settings.isMultilingual ? `/${lang}` : '/'; return ( { + evt.preventDefault(); + window.location = url; + }} > + this.onLinkClick( + evt, + 'https://www.eea.europa.eu/help/glossary', + ) + } > A-Z Glossary diff --git a/src/index.js b/src/index.js index abe8e48..3ef62e1 100644 --- a/src/index.js +++ b/src/index.js @@ -2,7 +2,6 @@ const applyConfig = (config) => { config.settings.allowed_cors_destinations = [ ...(config.settings.allowed_cors_destinations || []), 'www.eea.europa.eu', - 'www.eea.europa.eu/eea-custom-search.tags', ]; return config;