[utils] fix relative url resolving