I have a partial, partials/header.html.twig, I am calling on one of my sub pages with this code.

{% include directory ~ '/partials/header.html.twig' %}

Whenever I use {{ front_page }} inside the partial to link back to the front page, it doesn't work, but it works on everything else. I have been searching for an answer all morning but can't seem to find anything.

  • In which twig template is the {% include ... %}?
    – 4uk4
    May 3, 2016 at 6:26
  • @4k4 The {% include ... %} is located in page--taxonamy--term--%.html.twig
    – Evan
    May 3, 2016 at 13:15

1 Answer 1



<a href="{{ path('<front>') }}" title="{{ 'Some Title'|t }}" rel="home" class="some-class">
     Some Text

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.