diff --git a/src/Assets/AssetReferenceUpdater.php b/src/Assets/AssetReferenceUpdater.php index 9fb38b9b20..5e132724c5 100644 --- a/src/Assets/AssetReferenceUpdater.php +++ b/src/Assets/AssetReferenceUpdater.php @@ -100,7 +100,12 @@ protected function updateBardFieldValues($fields, $dottedPrefix) && $field->get('container') === $this->container; }) ->each(function ($field) use ($dottedPrefix) { - $field->get('save_html') === true + $data = $this->item->data()->all(); + $dottedKey = $dottedPrefix.$field->handle(); + $bardPayload = Arr::get($data, $dottedKey, []); + $isString = is_string($bardPayload); + + ($field->get('save_html') === true || $isString) ? $this->updateStatamicUrlsInStringValue($field, $dottedPrefix) : $this->updateStatamicUrlsInArrayValue($field, $dottedPrefix); });