fix(links): fix unlocalized and missing hrefs in map, hero, job listing and call to action
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 28s
Build & Deploy / 🧪 QA (push) Successful in 1m11s
Build & Deploy / 🏗️ Build (push) Successful in 2m51s
Build & Deploy / 🚀 Deploy (push) Successful in 30s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 47s
Build & Deploy / 🔔 Notify (push) Successful in 4s

This commit is contained in:
2026-05-27 17:49:23 +02:00
parent 0c01aa799d
commit 5329d96e3b
5 changed files with 12 additions and 5 deletions

View File

@@ -150,7 +150,10 @@ export function InteractiveGermanyMap({
onMouseEnter={() => setActiveLocation(loc)}
onMouseLeave={() => setActiveLocation(null)}
onClick={() => {
if (loc.href) router.push(loc.href);
if (loc.href) {
const href = loc.href.startsWith('/') ? `/${locale}${loc.href}` : loc.href;
router.push(href);
}
}}
>
{/* Ping Animation for HQ / Branch */}

View File

@@ -59,7 +59,7 @@ export const JobListingBlock = (props: JobListingBlockProps) => {
],
emptyStateMessage = t('emptyStateMessage'),
emptyStateLinkText = t('emptyStateLinkText'),
emptyStateLinkHref = '/kontakt'
emptyStateLinkHref = t('emptyStateLinkHref')
} = props;
const title = props.title || t('title');

View File

@@ -160,7 +160,7 @@ export default function Hero({ data }: { data?: any }) {
<div className="flex flex-col sm:flex-row justify-center md:justify-start gap-4 md:gap-6">
<div>
<Button
href="/contact"
href={`/${locale}/${locale === 'de' ? 'kontakt' : 'contact'}`}
variant="white"
size="lg"
className="group w-full sm:w-auto h-14 md:h-16 px-8 md:px-10 text-base md:text-lg hover:scale-105 transition-all outline-none"

View File

@@ -166,12 +166,14 @@
"CallToAction": {
"title": "Bereit für Ihr Projekt?",
"description": "Wir suchen stets nach neuen Herausforderungen und starken Partnern. Kontaktieren Sie uns für eine unverbindliche Beratung zu Ihrem Vorhaben.",
"ctaLabel": "Jetzt Kontakt aufnehmen"
"ctaLabel": "Jetzt Kontakt aufnehmen",
"ctaHref": "/de/kontakt"
},
"JobListingBlock": {
"fairsTitle": "Nächste Messetermine",
"emptyStateMessage": "Aktuell sind alle Positionen besetzt. Senden Sie uns gerne eine Initiativbewerbung!",
"emptyStateLinkText": "Jetzt Kontakt aufnehmen",
"emptyStateLinkHref": "/de/kontakt",
"date": "Datum",
"location": "Location",
"booth": "Stand",

View File

@@ -166,12 +166,14 @@
"CallToAction": {
"title": "Ready for your project?",
"description": "We are always looking for new challenges and strong partners. Contact us for a non-binding consultation about your project.",
"ctaLabel": "Contact us now"
"ctaLabel": "Contact us now",
"ctaHref": "/en/contact"
},
"JobListingBlock": {
"fairsTitle": "Upcoming Trade Fairs",
"emptyStateMessage": "All positions are currently filled. Feel free to send us an unsolicited application!",
"emptyStateLinkText": "Contact us now",
"emptyStateLinkHref": "/en/contact",
"date": "Date",
"location": "Location",
"booth": "Booth",