Fixed turning profile url into api url