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"