I created two twig templates: home.twig and about.twig. in home.twig it's this code:

<a href="/about">go to about template</a>

and in about.twig it's:


when I click "go to about template" it shows 404 error but, when I go to http://MY_HOST/about it shows me the about template. how to link this templates? thank's

1 Answer 1

  1. What is the URL of the page, where the link to /about is shown?
  2. Make sure you do not have a tag in the source of the page
  3. Make sure you are not switching from http:// to https:// (SSL), which could also cause the 404 if the host is not available on http:// AND https://

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.