diff --git a/content/en/bohrtechnik.mdx b/content/en/bohrtechnik.mdx index 686b770b5..9fde40484 100644 --- a/content/en/bohrtechnik.mdx +++ b/content/en/bohrtechnik.mdx @@ -12,7 +12,7 @@ layout: "fullBleed" backgroundImage={{ url: '/assets/photos/DSC08653.JPG' }} alignment="center" ctaLabel="Request a project" - ctaHref="/en/kontakt" + ctaHref="/en/contact" />
@@ -77,5 +77,5 @@ layout: "fullBleed" title="Looking for a trenchless solution?" text="We would be happy to advise you on the possibilities of horizontal directional drilling for your project." buttonText="Contact us" - buttonLink="/en/kontakt" + buttonLink="/en/contact" /> diff --git a/content/en/glasfaser.mdx b/content/en/glasfaser.mdx index 86564ac2d..94af15985 100644 --- a/content/en/glasfaser.mdx +++ b/content/en/glasfaser.mdx @@ -12,7 +12,7 @@ layout: "fullBleed" backgroundImage={{ url: '/assets/photos/DSC01129.JPG' }} alignment="center" ctaLabel="Request a project" - ctaHref="/en/kontakt" + ctaHref="/en/contact" />
@@ -75,5 +75,5 @@ layout: "fullBleed" title="Are you planning an FTTX expansion?" text="We are happy to advise you on all aspects of FTTX and fiber optic expansion." buttonText="Contact us" - buttonLink="/en/kontakt" + buttonLink="/en/contact" /> diff --git a/content/en/kabeltiefbau.mdx b/content/en/kabeltiefbau.mdx index 8bf92c776..f6d29f3eb 100644 --- a/content/en/kabeltiefbau.mdx +++ b/content/en/kabeltiefbau.mdx @@ -12,7 +12,7 @@ layout: "fullBleed" backgroundImage={{ url: '/assets/photos/DSC01123.JPG' }} alignment="center" ctaLabel="Request a project" - ctaHref="/en/kontakt" + ctaHref="/en/contact" />
@@ -79,5 +79,5 @@ layout: "fullBleed" title="Do you have a specific project?" text="We would be happy to advise you on all questions regarding cable civil engineering and line laying." buttonText="Contact us" - buttonLink="/en/kontakt" + buttonLink="/en/contact" /> diff --git a/content/en/karriere.mdx b/content/en/karriere.mdx index b2f384139..6c32aa1f0 100644 --- a/content/en/karriere.mdx +++ b/content/en/karriere.mdx @@ -100,6 +100,6 @@ layout: "fullBleed" title="Speculative Application (m/f/d)" description="Can you imagine taking on a long-term challenge in our company but can't find a suitable job offer? Apply speculatively." ctaLabel="To the contact form" - ctaHref="/en/kontakt" + ctaHref="/en/contact" theme="dark" /> diff --git a/content/en/kompetenzen.mdx b/content/en/kompetenzen.mdx index 8d72bb443..1a260b6bc 100644 --- a/content/en/kompetenzen.mdx +++ b/content/en/kompetenzen.mdx @@ -11,7 +11,7 @@ layout: "fullBleed" description="As a full-service partner in the field of cable civil engineering, we cover the entire spectrum of modern infrastructure projects." videoUrl="/assets/videos/web/hero-bohrung.mp4" linkText="Get in Touch" - linkHref="/en/kontakt" + linkHref="/en/contact" secondaryCtaLabel="View References" secondaryCtaHref="/en/#referenzen" /> @@ -20,7 +20,7 @@ layout: "fullBleed" badge="Core Competencies" title="Precision & Performance" ctaLabel="Request a project" - ctaHref="/en/kontakt" + ctaHref="/en/contact" items={[ { title: "Cable Construction", diff --git a/content/en/messen.mdx b/content/en/messen.mdx index b34639532..cc1ec7396 100644 --- a/content/en/messen.mdx +++ b/content/en/messen.mdx @@ -11,7 +11,7 @@ layout: "fullBleed" description="Get to know the E-TIB Group at the leading industry trade fairs." videoUrl="/assets/videos/web/hero-bahnkreuzung.mp4" linkText="Get in Touch" - linkHref="/en/kontakt" + linkHref="/en/contact" />
diff --git a/content/en/planung.mdx b/content/en/planung.mdx index 6624a8a12..4a608ffcd 100644 --- a/content/en/planung.mdx +++ b/content/en/planung.mdx @@ -12,7 +12,7 @@ layout: "fullBleed" backgroundImage={{ url: '/assets/photos/DJI_0048.JPG' }} alignment="center" ctaLabel="Request a project" - ctaHref="/en/kontakt" + ctaHref="/en/contact" />
@@ -75,5 +75,5 @@ layout: "fullBleed" title="Do you need planning security?" text="Let's talk about your project. We are at your side with our engineering knowledge." buttonText="Contact us" - buttonLink="/en/kontakt" + buttonLink="/en/contact" /> diff --git a/content/en/team.mdx b/content/en/team.mdx index 0c7e10c2e..f3de74eb1 100644 --- a/content/en/team.mdx +++ b/content/en/team.mdx @@ -86,5 +86,5 @@ layout: "fullBleed" title="Become part of our team" text="We are always looking for motivated talents for exciting infrastructure projects." buttonText="View open positions" - buttonLink="/en/karriere" + buttonLink="/en/career" /> diff --git a/content/en/ueber-uns.mdx b/content/en/ueber-uns.mdx index 27f273f32..205380696 100644 --- a/content/en/ueber-uns.mdx +++ b/content/en/ueber-uns.mdx @@ -11,7 +11,7 @@ layout: "fullBleed" description="Since 2015, we have been growing continuously to meet the demands of the energy transition and digitalization. As a corporate group, we pool specialized expertise under one roof." videoUrl="/assets/videos/web/hero-bahnkreuzung.mp4" linkText="Open Positions" - linkHref="/en/karriere" + linkHref="/en/career" secondaryCtaLabel="Discover Company" secondaryCtaHref="#structure" /> @@ -128,5 +128,5 @@ layout: "fullBleed" title="Ready for Your Project?" description="We are always looking for new challenges and strong partners. Contact us for a non-binding consultation on your project." ctaLabel="Contact Us Now" - ctaHref="/en/kontakt" + ctaHref="/en/contact" /> diff --git a/content/en/vermessung.mdx b/content/en/vermessung.mdx index 087de8cba..1c72d00ec 100644 --- a/content/en/vermessung.mdx +++ b/content/en/vermessung.mdx @@ -12,7 +12,7 @@ layout: "fullBleed" backgroundImage={{ url: '/assets/photos/DSC08653.JPG' }} alignment="center" ctaLabel="Request a project" - ctaHref="/en/kontakt" + ctaHref="/en/contact" />
@@ -77,5 +77,5 @@ layout: "fullBleed" title="Are you facing high documentation requirements?" text="Contact us for professional surveying and GIS services." buttonText="Contact us" - buttonLink="/en/kontakt" + buttonLink="/en/contact" /> diff --git a/tests/mdx-links.test.ts b/tests/mdx-links.test.ts new file mode 100644 index 000000000..155760547 --- /dev/null +++ b/tests/mdx-links.test.ts @@ -0,0 +1,26 @@ +import { describe, it, expect } from 'vitest'; +import fs from 'fs'; +import path from 'path'; + +describe('English MDX Content Links', () => { + it('should not contain German slug routes like /en/kontakt or /en/karriere', () => { + const enContentDir = path.join(process.cwd(), 'content', 'en'); + const files = fs.readdirSync(enContentDir).filter(f => f.endsWith('.mdx')); + + const forbiddenLinks = ['/en/kontakt', '/en/karriere']; + const infractions: string[] = []; + + files.forEach(file => { + const filePath = path.join(enContentDir, file); + const content = fs.readFileSync(filePath, 'utf8'); + + forbiddenLinks.forEach(link => { + if (content.includes(link)) { + infractions.push(`${file} contains forbidden link "${link}"`); + } + }); + }); + + expect(infractions).toEqual([]); + }); +});