-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
Which project does this relate to?
Start
Describe the bug
Locale redirect bug: navigating to /de immediately redirects to /en (cannot switch language)
Description
Repro repo
Problem
When I try to switch the app language to German (/de), it immediately redirects back to English (/en). Even if I manually type /de in the URL, it redirects to /en, so I canβt use the de locale at all.
Steps to reproduce
- Start the app (e.g.
pnpm dev). - Open
http://localhost:3000/de(or click a language switcher button that navigates/sets locale tode). - Observe the URL changes back to
/enimmediately.
Expected behavior
- Visiting
/destays on/de. - The UI renders German messages and
getLocale()(or equivalent) resolves tode.
Actual behavior
/dealways redirects to/enimmediately.- Language cannot be changed to German.
Relevant code / suspicion
- Suspicion: when running with Cloudflare + Vite dev,
src/server.tsdoes not seem to be executed, so the Paraglide middleware (paraglideMiddleware) never runs.
Environment
- OS: macOS
- Date: 2026-01-02
- Package manager: pnpm
- Dev server: Vite / TanStack Start + Cloudflare
- Locales configured:
en,de
Extra notes
- This happens even when the URL already includes
/de, so itβs not just missing-locale auto-redirect from/β/en.
Your Example Website or App
https://github.com/luthfi-hh/tanstack-start-hell
Steps to Reproduce the Bug or Issue
- Start the app (e.g.
pnpm dev). - Open
http://localhost:3000/de(or click a language switcher button that navigates/sets locale tode). - Observe the URL changes back to
/enimmediately.
Expected behavior
Visiting /de stays on /de.
The UI renders German messages and getLocale() (or equivalent) resolves to de.
Screenshots or Videos
No response
Platform
- Router / Start Version: 1.132.0
- OS: macOS
- Browser: Brave
- Brave 1.85.118 (Official Build) (arm64)
- Chromium: 143.0.7499.169
- Bundler: vite + cloudflare
- Bundler Version: 7.1.7
Additional context
No response
luthfi-hh
Metadata
Metadata
Assignees
Labels
No labels