Login page's ?next parameter actually redirect to anywhere user specify !
Server actually don't validate redirection URL leading to an Open Redirect vulnerability.
The server should verify redirection url with an allow list (chithi.dev) and drop every other redirection anywhere other than this one !