# Getting 404 error on individual articles on tag page

**URL:** <https://forum.ghost.org/t/getting-404-error-on-individual-articles-on-tag-page/52819>\
**Category:** Routing\
**Created:** [November 27, 2024, 10:46am UTC](https://forum.ghost.org/t/getting-404-error-on-individual-articles-on-tag-page/52819 "2024-11-27T10:46:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon\_Cooper](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/simon_cooper/32/33341_2.png) [@Simon\_Cooper](https://forum.ghost.org/u/Simon_Cooper)\
**Post date:** [November 27, 2024, 10:46am UTC](https://forum.ghost.org/t/getting-404-error-on-individual-articles-on-tag-page/52819/1 "2024-11-27T10:46:25Z")

</div>

I have navigation set up to show a page for a specific tag [The Weekly - Plain AI](https://www.plainai.co.uk/tag/the-weekly/). When I navigate to that page, I can see all of the posts related to that tag. However when clicking on an individual post I get a 404 error. I think I can see the problem, but I don’t quite know how to solve it.

I can see that the URL for each individual post is:

```auto
https://www.plainai.co.uk/p/bf3c0968-7bb5-40ba-a28f-6fe443f4c2d1/

```

But shouldn’t it be more like the following?

```auto
https://www.plainai.co.uk/tag/the-weekly/bf3c0968-7bb5-40ba-a28f-6fe443f4c2d1/

```

My current routes.yml is as below, where I’m excluding ‘the-weekly’ from the home page:

```auto
routes:

collections:
  
  /:
    permalink: /{slug}/
    template: index
    filter: tag:-[hide, the-weekly]

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/

```

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [November 27, 2024, 11:18am UTC](https://forum.ghost.org/t/getting-404-error-on-individual-articles-on-tag-page/52819/2 "2024-11-27T11:18:43Z")

</div>

Posts that aren’t part of any collection don’t have a url assigned and fall back to that preview style link. If you add another collection that includes them, that’ll stop them from the weird urls.

---

<div class="post-metadata">

**Author:** ![Simon\_Cooper](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/simon_cooper/32/33341_2.png) [@Simon\_Cooper](https://forum.ghost.org/u/Simon_Cooper)\
**Post date:** [November 27, 2024, 11:46am UTC](https://forum.ghost.org/t/getting-404-error-on-individual-articles-on-tag-page/52819/3 "2024-11-27T11:46:43Z")

</div>

Bingo!

This did the trick:

```auto
collections:
  
  /:
    permalink: /{slug}/
    template: index
    filter: tag:-[hide, the-weekly]
  
  /the-weekly/:
       permalink: /the-weekly/{slug}/

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/

```
