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
Redirect with basepath duplicates base in URL causing notFoundError #5324
This route triggers a redirect to /app/private/$privateId.
Expected behavior
The redirect should navigate to /app/private/$privateId without duplicating the base path.
but
The redirect navigates to /app/app/private/$privateId, causing a notFoundError.
Yes, same problem here with TanStack Router v1.132.41. Also happens with navigate(), in two identical scenarios: in one it works, in the other not. If baseUrl is default /, it works fine. With custom baseUrl like /app, sometimes it navigates correctly, sometimes it doubles the path (e.g., /app/app/../..) and throws a not found. It's sporadic—I can't nail down why exactly. Without custom basepath, all good.
Activity
Amko94 commentedon Oct 1, 2025
Yes, same problem here with TanStack Router v1.132.41. Also happens with navigate(), in two identical scenarios: in one it works, in the other not. If baseUrl is default /, it works fine. With custom baseUrl like /app, sometimes it navigates correctly, sometimes it doubles the path (e.g., /app/app/../..) and throws a not found. It's sporadic—I can't nail down why exactly. Without custom basepath, all good.
fix: correctly handle client-side vs server-side redirects with rewri…