# How to remove the /tag segment in the URL?

**URL:** <https://forum.ghost.org/t/how-to-remove-the-tag-segment-in-the-url/52692>\
**Category:** Routing\
**Created:** [November 22, 2024, 1:51pm UTC](https://forum.ghost.org/t/how-to-remove-the-tag-segment-in-the-url/52692 "2024-11-22T13:51:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hackermade](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hackermade/32/33939_2.png) [@hackermade](https://forum.ghost.org/u/hackermade)\
**Post date:** [November 22, 2024, 1:51pm UTC](https://forum.ghost.org/t/how-to-remove-the-tag-segment-in-the-url/52692/1 "2024-11-22T13:51:28Z")

</div>

Greetings, i’m new in the Ghost and i noticed that the cms uses **Tags** to categorize posts. Cool but the annoying thing is that i want the tag (category) name to be directly referenced after the domain name.

For example:

[https://example.com/sports](https://example.com/sports)

and not

[https://example.com/tag/sports](https://example.com/tag/sports)

Is this possible and if so will make things working strange?

Thanks in advance! ☺

---

<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 22, 2024, 6:47pm UTC](https://forum.ghost.org/t/how-to-remove-the-tag-segment-in-the-url/52692/2 "2024-11-22T18:47:28Z")

</div>

Yes. Take a look at the routes.yaml documentation.

---

<div class="post-metadata">

**Author:** ![hackermade](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hackermade/32/33939_2.png) [@hackermade](https://forum.ghost.org/u/hackermade)\
**Post date:** [November 22, 2024, 6:49pm UTC](https://forum.ghost.org/t/how-to-remove-the-tag-segment-in-the-url/52692/3 "2024-11-22T18:49:29Z")

</div>

Hi, thanks for the reply, if i remove the /tag and let only the slug, in an upcoming update i will have any issue?

---

<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 22, 2024, 7:35pm UTC](https://forum.ghost.org/t/how-to-remove-the-tag-segment-in-the-url/52692/4 "2024-11-22T19:35:03Z")

</div>

I run a non-standard tag path (/topic/whatever instead of /tag/whatever) and that works fine. But I’ve never tried with something that matches potential page slugs.

I don’t have a crystal ball for future updates.

What I’d suggest you do to make sure that it’s good for the present is:

1. Save an un-edited copy of routes.yaml, in case you realize you’ve broken something
2. Right after you upload the edited routes.yaml, test that everything is behaving as you’d expect, including:

- Check that your sitemap-tags.xml looks right.
- Check that clicking a tag anywhere your theme displays tags is going to the tags page
- Check your posts and pages and make sure none of them duplicate a tag’s slug. Fix one or the other if so.
