Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Language switcher goes to 404: how to find and fix it

CNV-336Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

A language switcher is the menu or flag that lets a visitor change the site language. On many sites each option links to the same page in another language, for example /en/pricing/ to /de/preise/. If that translated address does not exist, the server answers with a 404 (page not found) error.

It usually affects only some pages. The homepage switches fine, but a product, blog post or landing page has no translation or a different slug, so the link points at nothing.

Why it costs you leads or sales

A visitor who clicks the switcher is telling you they prefer another language. If they land on an error page, many leave rather than start over. You lose them on the exact page where they were closest to acting, such as a pricing page, a form or a product.

It also hurts trust. A broken switcher suggests the translated site is unfinished or unmaintained. Because the failure appears only on certain pages, it often goes unnoticed for weeks.

Where the visitor is lost
  1. Landing pageVisitor arrives in the default language
  2. Click language switcherLink points to a translated URL
  3. 404 pageTranslated URL does not exist
  4. Form or checkoutNever reached

The switcher click leads to an error page, so the rest of the funnel is never reached.

How to check if your site has it

Manual check
  1. Test from key pages

    Open your homepage, top landing pages, a product page, a blog post and the contact page. On each, click every language in the switcher.

  2. Note the status

    Open browser DevTools (F12), go to the Network tab, click the switcher and look at the status of the first request. A 404 confirms the problem.

  3. Test logged out and on mobile

    Use a private window and a phone. Some themes use a different switcher on mobile, and some links work only when you are logged in as an admin.

  4. Crawl the site

    Run a link crawler such as Screaming Frog or a broken link checker and filter for 404 responses whose source is the switcher markup.

How to fix it

The right fix depends on why the link is dead. Work out which cause applies, then use your platform's steps.

Common causes and fixes
CauseFix
Page not translatedTranslate it, or make the switcher fall back to the translated homepage
Slug changed or page deletedUpdate the link and add a 301 redirect from the old URL
Permalinks or routing not refreshedRe-save permalinks or republish the site
Hard-coded switcher linksReplace them with the platform's dynamic switcher
Fix by platform
  1. Refresh permalinks

    Go to Settings > Permalinks and click Save Changes without altering anything. This rebuilds rewrite rules, which often fixes translated URLs that 404.

  2. Check the translation plugin

    In WPML, Polylang or TranslatePress, open the page list and look for pages missing a translation. Translate them or set the switcher to link to the homepage when no translation exists (WPML: Languages > Languages > Language switcher options, Link to home / Skip language).

  3. Redirect renamed slugs

    If you changed a slug, add a 301 redirect from the old URL using a redirect plugin or your server config.

Fallback to the language homepage when no translation exists (example)javascript
const translations = {
  '/en/pricing/': { de: '/de/preise/', fr: '/fr/tarifs/' }
};
function switchUrl(path, lang) {
  const target = translations[path] && translations[path][lang];
  return target || '/' + lang + '/';
}
301 redirect for a renamed translated URLnginx
location = /de/preis/ {
  return 301 /de/preise/;
}
Switcher behaviour

Before

  • Switcher links to /de/preise/ that does not exist
  • Visitor sees a 404 page
  • They leave the site

After

  • Link points to a real translated page
  • Missing translations fall back to the language homepage
  • Visitor keeps browsing in their language

How to confirm it's fixed

Confirmation checks
  • Every language option returns a 200 page from your top 10 pages
  • No switcher link returns 404 in a fresh crawl
  • Old translated URLs return a 301 to the new page
  • Switcher works logged out, on mobile and in a private window
  • The destination page is in the chosen language

How to prevent it happening again

Prevention habits
  • Add a translation check to your publishing process for new pages
  • Always add a 301 redirect when you change or delete a slug
  • Use the platform's dynamic switcher, not hand-typed links
  • Re-save permalinks or republish after plugin, theme or locale changes
  • Crawl your site for 404s on a schedule

How FunnelGuard handles this

FunnelGuard detects this today through its broken links check (no_broken_links). A robot visitor loads the pages in your journeys on a schedule and flags links that lead to error pages, which includes a language switcher link that returns a 404. It covers the pages and journeys you set up, so it is not a full crawl of every URL on your site.

If a failure appears, FunnelGuard re-checks it from a second region first, then sends one alert by email, Slack, Teams, WhatsApp, webhook or PagerDuty with a screenshot and a likely cause. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans include a 3-day free trial.

Questions people ask

Why does my language switcher go to a 404 page?

The switcher links to a translated URL that does not exist. Common reasons are a page with no translation, a changed or deleted slug, or permalinks that were not refreshed after a plugin or theme update.

How do I fix a WPML or Polylang language switcher 404?

First go to Settings > Permalinks and click Save Changes to rebuild rewrite rules. Then check for pages missing a translation and either translate them or set the switcher to link to the homepage when no translation exists.

Should the language switcher link to the same page or the homepage?

Link to the same page in the other language when a translation exists. When it does not, fall back to the translated homepage or hide that language option, so visitors never reach an error.

Does a 404 from the language switcher hurt SEO?

Broken internal links waste crawl effort and give users a poor experience. Fixing them and adding 301 redirects for renamed pages is good practice, though I cannot promise a ranking change.

How can I find all broken language switcher links?

Crawl your site with a link checker and filter for 404 responses, then click the switcher by hand on your key pages. A scheduled monitor such as FunnelGuard can also check pages in your journeys regularly.

Why does the language switcher work on the homepage but not on other pages?

The homepage nearly always has a translation, while inner pages may not, or may use a different slug. The switcher builds the link from the current page, so it breaks only where the translated page is missing.

Can FunnelGuard detect a language switcher that goes to 404?

Yes. Its broken links check flags links on the pages in your journeys that return error pages, including switcher links. It covers the journeys you configure, not every URL on the site.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

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.