Right now the login view always redirect to votes:index. It should redirect according to the next url query parameter.
For example, when hitting "vote" as logout user, the user redirected to the login page and from there redirected back to the index without voting.
Right now the login view always redirect to votes:index. It should redirect according to the next url query parameter. For example, when hitting "vote" as logout user, the user redirected to the login page and from there redirected back to the index without voting.