high78%
Optimistic routes wrongly predict rewritten pages, causing locale mismatch
When optimisticRoutes is enabled and a path is rewritten (e.g., /team → /en/team), the client applies an optimistic navigation state based on the unrewritten URL. This incorrectly sets the locale (or other dynamic params) to the raw path segment instead of the rewritten value, leading to flashing 404s, wrong data fetching, or transient wrong locale rendering until the server response resolves.
