Remix app how to redirect to previous page post login
in my remix js app I have http://localhost:9001/app behind auth.
So when users lands at
My loader at the moment withing /app.tsx
if any pages loads at /app/new it is automatically behind auth.
So when users lands at
http://localhost:9001/app/xyz it successfully goes to login page if users is not authenticated, but after login user is being redirected to homepage http://localhost:9001/ I would like to change that. Please guide me.My loader at the moment withing /app.tsx
if any pages loads at /app/new it is automatically behind auth.