Change api url to relative path