2

I am using link field in a couple of content types, but when I am trying get url from node.html.twig with content.field_my_link_field and have tried some suggestions like content.field_my_link_field.uri, content.field_my_link_field.content|raw, content.field_my_link_field.content|striptags, content.field_my_link_field.0 but all return null. Is there any possible solution to getting raw url from link field in (preferably) twig or any other way.

I am using Drupal 8.

| improve this question | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.