# Why do tag pages without posts respond with a 404?

**URL:** <https://forum.ghost.org/t/why-do-tag-pages-without-posts-respond-with-a-404/38541>\
**Category:** Using Ghost\
**Created:** [May 19, 2023, 5:01am UTC](https://forum.ghost.org/t/why-do-tag-pages-without-posts-respond-with-a-404/38541 "2023-05-19T05:01:32Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![boxedpaul](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/boxedpaul/32/9142_2.png) [@boxedpaul](https://forum.ghost.org/u/boxedpaul)\
**Post date:** [May 19, 2023, 5:01am UTC](https://forum.ghost.org/t/why-do-tag-pages-without-posts-respond-with-a-404/38541/1 "2023-05-19T05:01:32Z")

</div>

Ghost responds to tag pages (`/tag/test/`) with a 404 Not Found if the tag doesn’t exist, or if the tag exists, but has no published posts/pages attached.

Why respond with a 404 for a tag page that has been deliberately created?

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [May 19, 2023, 8:23am UTC](https://forum.ghost.org/t/why-do-tag-pages-without-posts-respond-with-a-404/38541/2 "2023-05-19T08:23:47Z")

</div>

Because the page doesn’t exist; it is only generated when a post is published.

---

<div class="post-metadata">

**Author:** ![boxedpaul](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/boxedpaul/32/9142_2.png) [@boxedpaul](https://forum.ghost.org/u/boxedpaul)\
**Post date:** [May 20, 2023, 9:40pm UTC](https://forum.ghost.org/t/why-do-tag-pages-without-posts-respond-with-a-404/38541/3 "2023-05-20T21:40:48Z")

</div>

If the page is considered as “not existing”, why are the tags not deleted from the tags page when the last post/page with the tag is removed?

---

<div class="post-metadata">

**Author:** ![The\_Jetsetter\_Cheap](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/the_jetsetter_cheap/32/24019_2.png) [@The\_Jetsetter\_Cheap](https://forum.ghost.org/u/The_Jetsetter_Cheap)\
**Post date:** [May 22, 2023, 7:10am UTC](https://forum.ghost.org/t/why-do-tag-pages-without-posts-respond-with-a-404/38541/4 "2023-05-22T07:10:07Z")

</div>

my thoughts too when I saw it

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [May 22, 2023, 7:26am UTC](https://forum.ghost.org/t/why-do-tag-pages-without-posts-respond-with-a-404/38541/5 "2023-05-22T07:26:32Z")

</div>

There could be draft posts that use the tags. Moreover, I wouldn’t expect, or want, the action of deleting a tag to be automatic.

---

<div class="post-metadata">

**Author:** ![boxedpaul](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/boxedpaul/32/9142_2.png) [@boxedpaul](https://forum.ghost.org/u/boxedpaul)\
**Post date:** [May 23, 2023, 12:52am UTC](https://forum.ghost.org/t/why-do-tag-pages-without-posts-respond-with-a-404/38541/6 "2023-05-23T00:52:38Z")

</div>

Having draft posts with tags applied would explain the existence of the tag. It doesn’t explain why the tag page responds with a 404.

I agree that tags shouldn’t be deleted automatically.

But I still don’t understand why the tag page with no published posts responds with a 404. Is this considered preferable to having a tag page with no posts? If so, why?

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [May 23, 2023, 3:36am UTC](https://forum.ghost.org/t/why-do-tag-pages-without-posts-respond-with-a-404/38541/7 "2023-05-23T03:36:32Z")

</div>

I could ask the exact opposite - why _should_ a tag page with no posts respond with something 🙂

---

<div class="post-metadata">

**Author:** ![boxedpaul](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/boxedpaul/32/9142_2.png) [@boxedpaul](https://forum.ghost.org/u/boxedpaul)\
**Post date:** [June 11, 2023, 9:57pm UTC](https://forum.ghost.org/t/why-do-tag-pages-without-posts-respond-with-a-404/38541/8 "2023-06-11T21:57:53Z")

</div>

> why _should_ a tag page with no posts respond with something

My site has events. I use tags to create lists of events “this week”, “next week”, “this weekend”, etc.

Just because there are no events “this weekend”, I don’t want the page to present a 404 - I think that would be very confusing for a reader.

And, for SEO purposes, I assume Google prefers a page that [sometimes] has limited content over a page that disappears and reappears regularly?

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [August 20, 2023, 5:50am UTC](https://forum.ghost.org/t/why-do-tag-pages-without-posts-respond-with-a-404/38541/9 "2023-08-20T05:50:51Z")

</div>

It sounds like you’re looking for a channel or just a dedicated page 🙂 [Ghost Themes - Dynamic URLs & Routing](https://ghost.org/docs/themes/routing/?ref=ghost.org#channels)

---

<div class="post-metadata">

**Author:** ![boxedpaul](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/boxedpaul/32/9142_2.png) [@boxedpaul](https://forum.ghost.org/u/boxedpaul)\
**Post date:** [September 4, 2023, 1:04am UTC](https://forum.ghost.org/t/why-do-tag-pages-without-posts-respond-with-a-404/38541/10 "2023-09-04T01:04:25Z")

</div>

This achieves the effect of creating a permanent page irrespective of how many posts are tagged with the matching tag. Thank you.

However, it doesn’t resolve the problem of the tag page [potentially] regularly disappearing, then reappearing.

Can the tag link be made to reference the permanent page? Wouldn’t it just be easier to be able to make the tag page itself permanent?

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [September 4, 2023, 5:11pm UTC](https://forum.ghost.org/t/why-do-tag-pages-without-posts-respond-with-a-404/38541/11 "2023-09-04T17:11:04Z")

</div>

I personally don’t have an opinion, but the change to 404 empty tag and staff listings instead of rendering an empty page was intentional and done a few years ago.

It’s also a question of how likely and how much of an impact a tag switching between “active” and “inactive” is in the grand scheme of things - as you’ve highlighted, you have a use case where this could be problematic, but what about the other people that use Ghost?

Again, I don’t really have an opinion, just thinking out loud 🙂

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [September 4, 2023, 5:46pm UTC](https://forum.ghost.org/t/why-do-tag-pages-without-posts-respond-with-a-404/38541/12 "2023-09-04T17:46:35Z")

</div>

I tend to think this is a website housekeeping matter. If there’s an unused tag, I’d delete it.

However, I tend to use tags in the same way WordPress has categories, so I don’t have many to manage.

Could you create a “holding” post for the tags, e.g., a post that is pinned to the top of the tag page that describes the purpose of the tag/category?

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [April 8, 2024, 7:54am UTC](https://forum.ghost.org/t/why-do-tag-pages-without-posts-respond-with-a-404/38541/13 "2024-04-08T07:54:49Z")

</div>

Split this topic on April 8, 2024, 7:54am UTC

4 posts were split to a new topic: [Unassigned tags following import from WordPress](https://forum.ghost.org/t/unassigned-tags-following-import-from-wordpress/46419)
