<p>And the winner is, <strong>routing</strong>... Adding in <a href="http://buildwithcraft.com/docs/routing#dynamic-routes" rel="nofollow">dynamic routing</a> got me squared away. </p>

<p>If the URI looks like this: <code>blog/*</code></p>

<p>Load this template: <code>blog/index</code></p>

<p>One thing to note (as documented in the docs), your URI should not begin with a slash (/).</p>

CC BY-SA 3.0
2014-07-02T20:10:05.213Z
2014-07-02T20:10:05.213Z
Ryan Shrum
<p>Not trying to do anything fancy here, just trying to have a "tag" view similar to my category view (which uses the same template), however, when I add my link, <code>/blog/{{ tag|slugify}}</code> (I'm using <a href="http://straightupcraft.com/craft-plugins/slugify" rel="nofollow">Slugify</a> to generate a slug out of the tag name.), it returns the "Unable to find the template â€œ_layoutâ€" error. This should load the <code>/blog/index.html</code> template but it is not. My category view is working as well as the main load. (I am getting the same error when trying to do an author <code>/blog/{{ entry.author.username }}</code>) What am I missing?</p>

CC BY-SA 3.0
2014-07-02T19:51:53.250Z
As it turns out, that error was a 404 and I had an error in my `{% extends = "" %}` path. I'm still not sure why I can't get that path to return? Shouldn't I be able to list entries related to a tag vs. category vs. all on the same `/blog/index.html` template?
Ryan Shrum
<templating><users><tags>
Not finding template when adding "tag" view
# Not finding template when adding "tag" view

(Asked by: username_0 on 2014-07-02)

Not trying to do anything fancy here, just trying to have a "tag" view similar to my category view (which uses the same template), however, when I add my link, `/blog/{{ tag|slugify}}` (I'm using [Slugify](http://straightupcraft.com/craft-plugins/slugify) to generate a slug out of the tag name.), it returns the "Unable to find the template â€œ\_layoutâ€" error. This should load the `/blog/index.html` template but it is not. My category view is working as well as the main load. (I am getting the same error when trying to do an author `/blog/{{ entry.author.username }}`) What am I missing?

**Tags:** templating, users, tags
> **Comments:**
> **username_0**: As it turns out, that error was a 404 and I had an error in my `{% extends = "" %}` path. I'm still not sure why I can't get that path to return? Shouldn't I be able to list entries related to a tag vs. category vs. all on the same `/blog/index.html` template?  

---

## 1 answers

### Answer by username_0 on 2014-07-02. Score: 2 | Accepted answer

And the winner is, **routing**... Adding in [dynamic routing](http://buildwithcraft.com/docs/routing#dynamic-routes) got me squared away.

If the URI looks like this: `blog/*`

Load this template: `blog/index`

One thing to note (as documented in the docs), your URI should not begin with a slash (/).


---

