Is External Url Modifier
Returns true if a string is an external URL.
google_url: http://google.com/ entry_url: /waffles not_a_url: bacon {{ if google_url | is_external_url }} {{ if entry_url | is_external_url }} {{ if not_a_url | is_external_url }} @if (Statamic::modify($google_url)->isExternalUrl()->fetch()) ... @endif @if (Statamic::modify($entry_url)->isExternalUrl()->fetch()) ... @endif @if (Statamic::modify($not_a_url)->isExternalUrl()->fetch()) ... @endif true false false Docs Feedback
Submit improvements, related content, or suggestions through Github.
Betterify this page