<p>You told Craft to look for <code>tags/_tag</code></p>

<p>And then you created <code>templates/tags/_tags.html</code></p>

<p>Note you have no <code>s</code> on the end in the route definition, but you do in the template name.</p>

CC BY-SA 3.0
2016-12-23T00:31:09.470Z
Oops, that was a typo. The route is tags/( ‘tag’ token ) and tags/_tags. The template file is tags.html. But not working. Still get a 404.
DevServe
CC BY-SA 3.0
2016-12-23T01:19:15.580Z
BTW, I am following this tutorial: https://craftcms.com/support/tag-urls
DevServe
CC BY-SA 3.0
2016-12-24T00:30:42.043Z
Ok next guess - did you actually use the tag token (from the UI list of available tokens), or did you actually type or copy `tags/( ‘tag’ token )`
Jeremy Daalder
CC BY-SA 3.0
2016-12-24T06:16:56.827Z
Uhg! Yeah, I copied and pasted tags/( ‘tag’ token )!! That's an easy mistake for a newbie!!I changed it to: tags/* I figure that means anything that starts with tags/ and any text after the / to route. Last thing to fix is {{ tag.title }}, as it isn't displaying. Also, it is showing ALL games with a tag, rather than JUST the game (entries) that use the tag. (See link in original post)
DevServe
CC BY-SA 3.0
2016-12-22T02:45:28.797Z
2016-12-22T05:40:01.493Z
2016-12-22T05:40:01.493Z
Jeremy Daalder
<p>I'm tried to following the how-to implement tags but can't see to get it to work.
The how-to: <a href="https://craftcms.com/support/tag-urls" rel="nofollow noreferrer">https://craftcms.com/support/tag-urls</a></p>

<p>I created a new route, and in the URI field, I entered:</p>

<pre><code>tags/( ‘tag’ token )
</code></pre>

<p>In the template field I entered:</p>

<pre><code>tags/_tag
</code></pre>

<p>I created a folder in my template folder called tags and placed the template html file called:</p>

<pre><code>_tags.html
</code></pre>

<p>_tags.html contains the following:</p>

<pre><code>{% extends "_layout" %}
{% block content %}
    {% set tag = craft.tags.title(tag).first() %}

    &lt;h1&gt;Entries tagged with "{{ tag.title }}"&lt;/h1&gt;

{% set entries = craft.entries.relatedTo(tag).order('title') %}

{% if entries | length %}
    &lt;ul&gt;
        {% for entry in entries %}
            &lt;li&gt;{{ entry.getLink() }}&lt;/li&gt;
        {% endfor %}
    &lt;/ul&gt;
{% else %}
    &lt;p&gt;No entries could be found with that tag.&lt;/p&gt;
{% endif %} 
{% endblock %}
</code></pre>

<p>In my entry template, at the bottom, I have this snippet to list all related tags and to hyperlink those tags.</p>

<pre><code>{% if entry.tags | length %}
    &lt;h4&gt;Tags&lt;/h4&gt;
    &lt;ul&gt;
    {% for tag in entry.tags %}
        &lt;li&gt;&lt;a href="{{ siteUrl }}tags/{{ tag.title | url_encode }}" title="{{ tag.title }}"&gt;{{ tag.title }}&lt;/a&gt;&lt;/li&gt;
    {% endfor %}
    &lt;/ul&gt;
{% endif %}
</code></pre>

<p>An example of my entry is located below. It correctly shows the tag called 'Platformer'
<a href="http://www.colorcomputergames.com/games/donkey-king" rel="nofollow noreferrer">http://www.colorcomputergames.com/games/donkey-king</a></p>

<p>The URL, looks good.
<a href="http://www.colorcomputergames.com/tags/Platformer" rel="nofollow noreferrer">http://www.colorcomputergames.com/tags/Platformer</a></p>

<p>But when I go to the url, I get a 404</p>

<p>Cheers</p>

<templating><routes><tags>
Confused about tags
# Confused about tags

(Asked by: username_0 on 2016-12-22)

I'm tried to following the how-to implement tags but can't see to get it to work.
The how-to: https://craftcms.com/support/tag-urls
I created a new route, and in the URI field, I entered:
tags/( ‘tag’ token )

In the template field I entered:
tags/_tag

I created a folder in my template folder called tags and placed the template html file called:
_tags.html

_tags.html contains the following:
{% extends "_layout" %}
{% block content %}
    {% set tag = craft.tags.title(tag).first() %}

    Entries tagged with "{{ tag.title }}"

{% set entries = craft.entries.relatedTo(tag).order('title') %}

{% if entries | length %}
    
        {% for entry in entries %}
            {{ entry.getLink() }}
        {% endfor %}
    
{% else %}
    No entries could be found with that tag.
{% endif %} 
{% endblock %}

In my entry template, at the bottom, I have this snippet to list all related tags and to hyperlink those tags.
{% if entry.tags | length %}
    Tags
    
    {% for tag in entry.tags %}
        {{ tag.title }}
    {% endfor %}
    
{% endif %}

An example of my entry is located below. It correctly shows the tag called 'Platformer'
http://www.colorcomputergames.com/games/donkey-king
The URL, looks good.
http://www.colorcomputergames.com/tags/Platformer
But when I go to the url, I get a 404
Cheers

**Tags:** templating, routes, tags

---

## 1 answers

### Answer by username_1 on 2016-12-22. Score: 5 | Accepted answer

You told Craft to look for `tags/_tag`

And then you created `templates/tags/_tags.html`

Note you have no `s` on the end in the route definition, but you do in the template name.

> **Comments:**
> **username_0**: Oops, that was a typo. The route is tags/( ‘tag’ token ) and tags/_tags. The template file is tags.html. But not working. Still get a 404.  
> **username_0**: BTW, I am following this tutorial: https://craftcms.com/support/tag-urls  
> **username_1**: Ok next guess - did you actually use the tag token (from the UI list of available tokens), or did you actually type or copy `tags/( ‘tag’ token )`  
> **username_0**: Uhg! Yeah, I copied and pasted tags/( ‘tag’ token )!! That's an easy mistake for a newbie!!I changed it to: tags/* I figure that means anything that starts with tags/ and any text after the / to route. Last thing to fix is {{ tag.title }}, as it isn't displaying. Also, it is showing ALL games with a tag, rather than JUST the game (entries) that use the tag. (See link in original post)  

---

