What version of Remix are you using?
2.2.0
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
- Clone this repository: https://github.com/akoenig/remix-repro-vite-redirect
- Open
http://localhost:5173
- Click on the button "To Onboarding"
In one route, /onboarding, there is a function responsible for constructing its own URL (getUrl). This function gets imported in the index route and used within a redirect. This redirect fails occasionally.
Expected Behavior
The redirect should work always.
Actual Behavior
The redirect works occasionally.