# Broken post link

**URL:** <https://forum.ghost.org/t/broken-post-link/13436>\
**Category:** Developer help\
**Created:** [April 12, 2020, 9:41am UTC](https://forum.ghost.org/t/broken-post-link/13436 "2020-04-12T09:41:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinverbic](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/martinverbic/32/24543_2.png) [@martinverbic](https://forum.ghost.org/u/martinverbic)\
**Post date:** [April 12, 2020, 9:41am UTC](https://forum.ghost.org/t/broken-post-link/13436/1 "2020-04-12T09:41:44Z")

</div>

I’m using a custom theme for Ghost and I just found out I have a broken link to a post…just one. Everything else is normal. The post shows as featured and on my index page. It only redirects to 404 page. Has anyone experienced something similar? Does anyone know how to fix this?

[Here’s the link to the post](https://martinverbic.com/failure-and-improvement). If you navigate to my home page and click on “Failure Is The Driving Force Of Improvement” you’ll be able to see what happens.

---

<div class="post-metadata">

**Author:** ![martinverbic](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/martinverbic/32/24543_2.png) [@martinverbic](https://forum.ghost.org/u/martinverbic)\
**Post date:** [April 13, 2020, 6:22am UTC](https://forum.ghost.org/t/broken-post-link/13436/2 "2020-04-13T06:22:38Z")

</div>

I tried deleting the post, restarting my server and publishing again…all the same. To me it looks as if the link generated is the one for previewing posts…

I’d really appreciate your help.

---

<div class="post-metadata">

**Author:** ![Hannah](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hannah/32/22_2.png) [@Hannah](https://forum.ghost.org/u/Hannah)\
**Post date:** [April 13, 2020, 10:05am UTC](https://forum.ghost.org/t/broken-post-link/13436/3 "2020-04-13T10:05:12Z")

</div>

Do you have a custom routes.yaml file?

---

<div class="post-metadata">

**Author:** ![martinverbic](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/martinverbic/32/24543_2.png) [@martinverbic](https://forum.ghost.org/u/martinverbic)\
**Post date:** [April 13, 2020, 2:09pm UTC](https://forum.ghost.org/t/broken-post-link/13436/4 "2020-04-13T14:09:14Z")

</div>

Yes I do. Here it is:

```
routes:
  /signup/: members/signup
  /signin/: members/signin
  /account/: members/account

  /:
    controller: channel
    template: home

collections:
  /blog/:
    permalink: /{slug}/
    template: index
    filter: tag:post
  /archive/:
    permalink: /archive/{slug}/
    template: archive
    filter: tag:newsletter

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

---

<div class="post-metadata">

**Author:** ![Hannah](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hannah/32/22_2.png) [@Hannah](https://forum.ghost.org/u/Hannah)\
**Post date:** [April 13, 2020, 2:33pm UTC](https://forum.ghost.org/t/broken-post-link/13436/5 "2020-04-13T14:33:17Z")

</div>

You only have collections configured for posts that have either the tag ‘post’ or the tag ‘newsletter’.

Any posts that don’t have one of these tags won’t belong to a collection. A collection is what gives the post a URL.

I’d guess your post doesn’t have either of those tags, and therefore the 404 is expected?

---

<div class="post-metadata">

**Author:** ![martinverbic](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/martinverbic/32/24543_2.png) [@martinverbic](https://forum.ghost.org/u/martinverbic)\
**Post date:** [April 13, 2020, 4:00pm UTC](https://forum.ghost.org/t/broken-post-link/13436/6 "2020-04-13T16:00:08Z")

</div>

Yes, that’s exactly what it is. This was a stupid mistake. Sorry to bother you with it 😅

Thank you

---

<div class="post-metadata">

**Author:** ![Hannah](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hannah/32/22_2.png) [@Hannah](https://forum.ghost.org/u/Hannah)\
**Post date:** [April 13, 2020, 4:49pm UTC](https://forum.ghost.org/t/broken-post-link/13436/7 "2020-04-13T16:49:25Z")

</div>

No worries at least it was easy 😃
