Fix bug in login redirect and url handling