Let's suppose I'm in a comment section of a submission. I need to login to make a comment. However, after I login, I get redirected to the main page. It's really annoying to get back to the comment section.
I propose that instead of being redirected to the main page after login, the user remains in the page where they was before logging in.