<ol>
<li>What is the URL of the page, where the link to /about is shown?</li>
<li>Make sure you do not have a  tag in the source of the page</li>
<li>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://</li>
</ol>

CC BY-SA 4.0
2020-05-07T20:06:22.190Z
2020-05-07T20:06:22.190Z
Matthias Redl-Mann
<p>I created two twig templates: <code>home.twig</code> and <code>about.twig</code>.
in home.twig it's this code:</p>

<pre><code>&lt;a href="/about"&gt;go to about template&lt;/a&gt;
</code></pre>

<p>and in about.twig it's:</p>

<pre><code>&lt;h1&gt;about&lt;/h1&gt;
</code></pre>

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

<templating><routes>
link twig template in a tag
# link twig template in a tag

(Asked by: username_0 on 2020-05-07)

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

and in about.twig it's:
about

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

**Tags:** templating, routes

---

## 1 answers

### Answer by username_1 on 2020-05-07. Score: 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://


---

