Fixes profile link on front page for logged-in users.