diff --git a/templates/SilverStripe/LinkField/Models/Link.ss b/templates/SilverStripe/LinkField/Models/Link.ss index ebfb3eed..3d3c455f 100644 --- a/templates/SilverStripe/LinkField/Models/Link.ss +++ b/templates/SilverStripe/LinkField/Models/Link.ss @@ -1 +1,3 @@ -target="_blank" rel="noopener noreferrer"<% end_if %>>$DisplayTitle +<% if $exists %> + target="_blank" rel="noopener noreferrer"<% end_if %>>$DisplayTitle +<% end_if %>