You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
decodePathname throws URIError on malformed percent-encoded pathname #1361
decodePathname can throw URIError when the pathname contains malformed percent-encoded bytes (for example incomplete or invalid UTF-8 sequences). This happens during H3Event construction, so the request fails before normal app-level handling can run. This was a breaking change between rc 16 and rc 19 (we stuggle a bit upgrading tanstack TanStack/router#7044 because of it)
Additional context
Adding a try/catch block might be sufficient here to return original pathname on decode failure:
Activity
fix: handle URIError in decodePathname for malformed percent-encoding
birkskyum commentedon Apr 11, 2026
closed by TanStack/router#7140