vendor/easycorp/easyadmin-bundle/src/Resources/views/crud/field/url.html.twig line 1

Open in your IDE?
  1. {# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
  2. {# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
  3. {# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
  4. {# NOTE: the rel="noopener" attr is needed to avoid performance and security issues
  5.   (see https://web.dev/external-anchors-use-rel-noopener/) #}
  6. {% if ea.crud.currentAction == 'detail' %}
  7.     <a target="_blank" rel="noopener" href="{{ field.value }}">{{ field.value }}</a>
  8. {% else %}
  9.     <a target="_blank" rel="noopener" href="{{ field.value }}">{{ field.formattedValue }}</a>
  10. {% endif %}