Move profile link into condition