Closed Vijaykv5 closed 8 months ago
local
When user is not logged in, They must not be redirected to the login page
No response
Yes
src/app/api/rate/route.js
25
return redirect("/?alert=error&message=Invalid Session");
- return redirect("/auth/login"); + return redirect("/?alert=error&message=Invalid Session");
return redirect("/auth/login");
Thank you @eddiejaoude :)
Has this bug been raised before?
Where did you find this bug?
local
Description
When user is not logged in, They must not be redirected to the login page
Steps to Reproduce
Screenshots
No response
Do you want to work on this issue?
Yes
If "yes" to above, please explain how you would technically implement this
src/app/api/rate/route.js
on line25
return redirect("/?alert=error&message=Invalid Session");
return redirect("/auth/login");
and replace withreturn redirect("/?alert=error&message=Invalid Session");