diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 125aa93..ec957b3 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -2,13 +2,24 @@ import React from 'react'; const Footer = () => { const currentYear = new Date().getFullYear(); - + + // Same reasoning as the /#section nav links below: this footer is shared with + // /privacy and /platforma, so the logo needs a real href to get home from + // there. On the homepage that href would mean a full reload, so intercept the + // click and scroll to the top instead. + const handleLogoClick = (e: React.MouseEvent) => { + if (window.location.pathname !== '/') return; + e.preventDefault(); + window.scrollTo({ top: 0, behavior: 'smooth' }); + }; + + return (