Fixes the wrong redirect to the user profile instead of the front page