# Is there a way to remove /tag from url?

**URL:** <https://forum.ghost.org/t/is-there-a-way-to-remove-tag-from-url/3263>\
**Category:** Developer help\
**Created:** [September 24, 2018, 6:45pm UTC](https://forum.ghost.org/t/is-there-a-way-to-remove-tag-from-url/3263 "2018-09-24T18:45:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![etanb](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/etanb/32/440_2.png) [@etanb](https://forum.ghost.org/u/etanb)\
**Post date:** [September 24, 2018, 6:45pm UTC](https://forum.ghost.org/t/is-there-a-way-to-remove-tag-from-url/3263/1 "2018-09-24T18:45:38Z")

</div>

Version ghost:1.22.4

Hello,

Currently if you’d like to see all posts of a certain tag you’d have to go to [myblog.com/tag/interesting-tag](http://myblog.com/tag/interesting-tag). Is there a way to remove the second slash and make the tag filter url structure look like: [myblog.com/interesting-tag](http://myblog.com/interesting-tag)?

Thank you!

---

<div class="post-metadata">

**Author:** ![Oshawk](https://avatars.discourse-cdn.com/v4/letter/o/b9e5f3/32.png) [@Oshawk](https://forum.ghost.org/u/Oshawk)\
**Post date:** [September 25, 2018, 9:32am UTC](https://forum.ghost.org/t/is-there-a-way-to-remove-tag-from-url/3263/2 "2018-09-25T09:32:02Z")

</div>

A couple of solutions:

1. Modify the routes.yaml so it looks like this:

This would affect all tags and /tag/ urls may not work any more.

1. Put something like this in the redirects.json:

This will just redirect /interseting-tag to /tag/interesting-tag

[https://docs.ghost.org/docs/dynamic-routing](https://docs.ghost.org/docs/dynamic-routing)  
[https://docs.ghost.org/docs/redirects](https://docs.ghost.org/docs/redirects)

---

<div class="post-metadata">

**Author:** ![etanb](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/etanb/32/440_2.png) [@etanb](https://forum.ghost.org/u/etanb)\
**Post date:** [September 25, 2018, 3:08pm UTC](https://forum.ghost.org/t/is-there-a-way-to-remove-tag-from-url/3263/3 "2018-09-25T15:08:47Z")

</div>

This is excellent. Thank you for the knowledge bomb!

---

<div class="post-metadata">

**Author:** ![Oshawk](https://avatars.discourse-cdn.com/v4/letter/o/b9e5f3/32.png) [@Oshawk](https://forum.ghost.org/u/Oshawk)\
**Post date:** [September 25, 2018, 5:15pm UTC](https://forum.ghost.org/t/is-there-a-way-to-remove-tag-from-url/3263/4 "2018-09-25T17:15:04Z")

</div>

You are welcome 🙂

---

<div class="post-metadata">

**Author:** ![etanb](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/etanb/32/440_2.png) [@etanb](https://forum.ghost.org/u/etanb)\
**Post date:** [September 27, 2018, 2:18pm UTC](https://forum.ghost.org/t/is-there-a-way-to-remove-tag-from-url/3263/5 "2018-09-27T14:18:49Z")

</div>

> [@Oshawk](#):
>
> [https://docs.ghost.org/docs/dynamic-routing](https://docs.ghost.org/docs/dynamic-routing)

The docs say to add this to “content/settings/routes.yaml”

Where is this folder? Within the theme or ghost app itself?

---

<div class="post-metadata">

**Author:** ![Oshawk](https://avatars.discourse-cdn.com/v4/letter/o/b9e5f3/32.png) [@Oshawk](https://forum.ghost.org/u/Oshawk)\
**Post date:** [September 27, 2018, 2:20pm UTC](https://forum.ghost.org/t/is-there-a-way-to-remove-tag-from-url/3263/6 "2018-09-27T14:20:49Z")

</div>

If you go to “labs” in the sidebar there is an option to upload it directly at the bottom.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [October 11, 2018, 2:20pm UTC](https://forum.ghost.org/t/is-there-a-way-to-remove-tag-from-url/3263/7 "2018-10-11T14:20:50Z")

</div>

Closed on October 11, 2018, 2:20pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
