fix url endpoint when using asset_host