Change api url to relative