diff --git a/src/Modifiers/CoreModifiers.php b/src/Modifiers/CoreModifiers.php index 36f9ff6bf0..f55e31a0e9 100644 --- a/src/Modifiers/CoreModifiers.php +++ b/src/Modifiers/CoreModifiers.php @@ -26,6 +26,7 @@ use Statamic\Fields\Values; use Statamic\Fieldtypes\Bard; use Statamic\Fieldtypes\Bard\Augmentor; +use Statamic\Fieldtypes\Link\ArrayableLink; use Statamic\Support\Arr; use Statamic\Support\Dumper; use Statamic\Support\Html; @@ -1263,6 +1264,10 @@ public function isUrl($value) */ public function isExternalUrl($value) { + if ($value instanceof ArrayableLink) { + $value = $value->value(); + } + return Str::isUrl($value) && URL::isExternal($value); }