Make API link point to the right location