Closed derekjwilliams closed 5 months ago
Currently after logging in the user sees the "protected" page. Ideally the user would end up at the URL that they first entered, e.g. if the user is not logged in and navigates to https://first-next-auth-eight.vercel.app/servicerequests/new they should be taken to the login page, then after successful login, be redirected back to https://first-next-auth-eight.vercel.app/servicerequests/new
Modified to redirect to home after login, need to still redirect to the intended page
Currently after logging in the user sees the "protected" page. Ideally the user would end up at the URL that they first entered, e.g. if the user is not logged in and navigates to https://first-next-auth-eight.vercel.app/servicerequests/new they should be taken to the login page, then after successful login, be redirected back to https://first-next-auth-eight.vercel.app/servicerequests/new