Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Language switcher links to 404 or homepage: how to fix it

PRF-350Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

A language switcher is the menu or flag that lets visitors change the site language. It should take them to the same page in the new language. There are two common failures. In the first, the link points to a URL that does not exist, so the visitor sees a 404 error. In the second, the link always goes to the homepage of the other language, so the visitor loses the page they were reading.

People who switch language usually do so because they cannot comfortably read the current one. If the switch fails, many will leave rather than navigate again in a language they struggle with. A product page, pricing page or form that gets replaced by a homepage or an error page ends the journey at the moment of intent.

Where the journey breaks
  1. Pricing page (EN)Visitor reads, wants German
  2. Clicks DE in switcherLink points to missing URL or homepage
  3. Pricing page (DE)Never reached
  4. Contact form / checkoutNever reached

The visitor wants the pricing page in German but the switcher fails.

Visitors who continue after switching languageExample numbers
Visitors who continue after switching language (example)Switcher lands on same page: 70 %; Switcher lands on homepage: 35 %; Switcher lands on 404: 10 %02754703510Switcher lands on sam…Switcher lands on hom…Switcher lands on 404%

Example: illustrative numbers only, not real data.

How to check if your site has it

Test the switcher by hand
  1. List your key pages

    Pick the homepage, top landing pages, pricing, product, contact and checkout pages.

  2. Switch language on each page

    Click every language option in the switcher and note where you land. It should be the translated version of the same page.

  3. Check the result

    Look for a 404 page, a redirect to the homepage, or the page staying in the old language.

  4. Test both directions

    Switch from each language to each other language, not only from the default one.

  5. Test on mobile

    Mobile themes often use a different menu, which can carry different links.

  6. Inspect the link

    Right-click the switcher option, copy the link address and open it in a private window. Check the status in your browser's Network tab.

How to fix it

First decide what should happen for each page: link to its translation if one exists. If it does not, either create the translation or send the visitor to the translated homepage, and ideally hide or disable that language option on that page.

Fix by platform
  1. Check translations exist

    In your multilingual plugin (for example WPML, Polylang or TranslatePress) open the page and confirm a published translation is linked to it. Menu names vary by plugin.

  2. Set the missing-translation behaviour

    In the plugin's language switcher settings, choose to skip or hide languages without a translation, or link to the translated homepage, instead of a dead link.

  3. Fix changed slugs

    If a slug changed, re-save the permalinks under Settings > Permalinks and add a redirect from the old URL.

Switcher that points to the same page in each languagehtml
<nav aria-label="Language">
  <a href="/en/pricing/" hreflang="en" lang="en">English</a>
  <a href="/de/preise/" hreflang="de" lang="de">Deutsch</a>
</nav>

How to confirm it's fixed

Confirmation checklist
  • Every language option on each key page lands on the translated version of that page
  • No switcher link returns a 404 status
  • Languages without a translation are hidden or sent to the translated homepage on purpose
  • Switching works from every language, on desktop and mobile
  • The language choice stays when the visitor moves to the next page

How to prevent it happening again

Add the switcher check to your publishing routine. When you rename, delete or unpublish a page, do the same for all its translations or set up a redirect. Test the switcher after theme, plugin or app updates, since these often change how links are built.

How the problem usually appears
  1. Day 1

    Team renames the English pricing slug

  2. Day 2

    German switcher link still points to the old path

  3. Weeks later

    Visitors who switch language see a 404 and leave

  4. After the fix

    Link updated and old URL redirected

How FunnelGuard handles this

FunnelGuard detects this only partly. Its check is no_broken_links: while running your journeys, it looks for links that lead to broken pages. If a language switcher link on a page in a monitored journey returns an error such as a 404, that can be flagged.

It does not check that a switcher link lands on the right translated page. A link that works but sends visitors to the homepage looks fine to a broken-link check, so it will not be flagged. It also does not judge whether the translation is the correct one.

To cover the rest by hand, use the checklist above on your key pages after each release and after translation or theme changes. A free read-only website audit is available, and the Free plan includes 1 site and 2 journeys with daily checks, no card needed.

Frequently asked questions

Questions people ask

Why does my language switcher go to the homepage?

Usually the plugin, app or theme has no translation to link to, so it falls back to the homepage. It can also be a hard-coded link. Publish the missing translation or change the fallback setting so it hides the option.

Why is my language switcher showing a 404 error?

The link points to a URL that does not exist. Common reasons are a changed slug, an unpublished or deleted translation, or a redirect rule catching the path. Fix the link or add a 301 redirect.

How do I make the language switcher keep the same page?

Use the switcher built into your multilingual plugin or platform, because it links each page to its translation. Avoid hand-typed links to the homepage of each language.

Should I hide a language if the page has no translation?

Yes, either hide it or link to the translated homepage on purpose. Linking to a dead page is the worst option because it leaves the visitor with an error.

Can I find broken language switcher links automatically?

A broken-link check can find links that return errors, such as a 404. It will not catch links that work but land on the wrong page, so you also need a manual test of the key pages.

Does FunnelGuard check my language switcher?

Partly. Its no_broken_links check can flag a switcher link that leads to a broken page within a monitored journey. It does not verify that the link goes to the correct translated page.

Does a broken language switcher affect SEO?

Broken links give visitors a poor experience and can waste crawling on error pages. Correct switcher links and proper hreflang tags help search engines find your translated pages.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: no_broken_links.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.