# Custom structured urls

**URL:** <https://forum.ghost.org/t/custom-structured-urls/3644>\
**Category:** Developer help\
**Created:** [October 19, 2018, 6:00pm UTC](https://forum.ghost.org/t/custom-structured-urls/3644 "2018-10-19T18:00:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![VSVS](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vsvs/32/1023_2.png) [@VSVS](https://forum.ghost.org/u/VSVS)\
**Post date:** [October 19, 2018, 6:00pm UTC](https://forum.ghost.org/t/custom-structured-urls/3644/1 "2018-10-19T18:00:34Z")

</div>

I’ve been trying to create custom url structures for some time now and i’ve been following along this [tutorial](https://docs.ghost.org/tutorials/creating-content-collections/) which i think is great, however im not sure if im going about this the wrong way or this indeed works as intended to.

I basically need to create a page with a list of tagged articles with links to the article. Simple enough.

So let’s say i have [mysite.com/engineering](http://mysite.com/engineering) as the page with a list  
and the article would link to something like [mysite.com/engineering/node-js](http://mysite.com/engineering/node-js)

If i navigate to [mysite.com/engineering/node-js](http://mysite.com/engineering/node-js) it redirects to [mysite.com/node-js](http://mysite.com/node-js)

How can i get the url to display properly? Is that how **content collections** work?

my routes.yaml file

```
routes:
  
collections:
  /:
    permalink: /{slug}/
    template:
      - index
  /engineering/: 
    permalink: /engineering/{slug}/
    filter: engineering+tag
    template:
      - engineering

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

```

---

<div class="post-metadata">

**Author:** ![Kate](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kate/32/35_2.png) [@Kate](https://forum.ghost.org/u/Kate)\
**Post date:** [October 19, 2018, 6:08pm UTC](https://forum.ghost.org/t/custom-structured-urls/3644/2 "2018-10-19T18:08:17Z")

</div>

```auto
routes:
  
collections:
  /:
    permalink: /{slug}/
    filter: tag:-engineering
    template:
      - index
  /engineering/: 
    permalink: /engineering/{slug}/
    filter: tag:engineering
    template:
      - engineering

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

```

> If i navigate to [mysite.com/engineering/node-js](http://mysite.com/engineering/node-js) it redirects to [mysite.com/node-js](http://mysite.com/node-js)

Ghost does not redirect this use case. Did you try clearing your cache?

---

<div class="post-metadata">

**Author:** ![VSVS](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vsvs/32/1023_2.png) [@VSVS](https://forum.ghost.org/u/VSVS)\
**Post date:** [October 19, 2018, 6:15pm UTC](https://forum.ghost.org/t/custom-structured-urls/3644/3 "2018-10-19T18:15:07Z")

</div>

Hey Kate,

Yes i did and i’ve restarted my ghost blog although im working locally.

Running version 2.1.2

---

<div class="post-metadata">

**Author:** ![Kate](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kate/32/35_2.png) [@Kate](https://forum.ghost.org/u/Kate)\
**Post date:** [October 19, 2018, 6:19pm UTC](https://forum.ghost.org/t/custom-structured-urls/3644/4 "2018-10-19T18:19:12Z")

</div>

Must be a local issue. It works on my machine.  
The slug of the post is `node-js` and it’s tagged with `engineering`. It will live on `/engineering/node-js/`.

---

<div class="post-metadata">

**Author:** ![VSVS](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vsvs/32/1023_2.png) [@VSVS](https://forum.ghost.org/u/VSVS)\
**Post date:** [October 19, 2018, 6:21pm UTC](https://forum.ghost.org/t/custom-structured-urls/3644/5 "2018-10-19T18:21:03Z")

</div>

hmmm… ok. I have a staging version. ill re-implement this on that site instead and post back any valuable discoveries. thanks

---

<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:** [November 2, 2018, 6:21pm UTC](https://forum.ghost.org/t/custom-structured-urls/3644/6 "2018-11-02T18:21:12Z")

</div>

Closed on November 2, 2018, 6:21pm UTC

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