As is the case with every third client or so, my latest wants external links to open in a new window. Unfortunately, things are pretty complicated as it is and I don’t want to add something goofy like an extra checkbox fieldset.
Is there any easy way to check if a field contains an external link, so I can throw a target=“_blank” in a conditional?
For what it’s worth, the aforementioned link is currently being added into a Matrix textarea field as a relative path. I’d like to allow both relative and full paths (or find some sort of ultra simple link field for Matrix that I can drop in).