fix locations to always use the correct URI upstream