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.

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.