Make API URL relative to current host