<p>Craft doesn't care what the individual slug of an entry is on its own, it looks at the whole path to see if there are duplicates.</p>

<p>Therefore having <code>shop.com/candy</code> and <code>shop.com/about-us/candy</code> shouldn't be a problem, provided the <code>Entry URI Format</code> has been setup correctly for your Sections.</p>

<p>It should take into account the slug of parent entries in generating their own. I use this:</p>

<p><code>{parent.uri ?? ''}/{slug}</code></p>

CC BY-SA 4.0
2019-08-14T09:01:51.410Z
Thanks Jamie for your reply!

`{parent.uri ?? ''}/{slug}` did the trick
Romberto
CC BY-SA 4.0
2019-08-14T08:51:50.380Z
2019-08-14T08:51:50.380Z
Jamie Wade
<p>Is there a way/workaround for using "duplicate" slugs?</p>

<p><strong>Example:</strong> </p>

<ul>
<li>shop.com/candy (category page with listing of candy's)</li>
<li>shop.com/about-us/candy (plain page with info about the production process etc)</li>
</ul>

<p>Normally Craft will automatically generate for the second slug "candy-1".</p>

<slug>
Use of duplicate slugs, without -1
# Use of duplicate slugs, without -1

(Asked by: username_0 on 2019-08-14)

Is there a way/workaround for using "duplicate" slugs?

**Example:**

* shop.com/candy (category page with listing of candy's)
* shop.com/about-us/candy (plain page with info about the production process etc)

Normally Craft will automatically generate for the second slug "candy-1".

**Tags:** slug


---

## 1 answers

### Answer by username_1 on 2019-08-14. Score: 4 | Accepted answer

Craft doesn't care what the individual slug of an entry is on its own, it looks at the whole path to see if there are duplicates.

Therefore having `shop.com/candy` and `shop.com/about-us/candy` shouldn't be a problem, provided the `Entry URI Format` has been setup correctly for your Sections.

It should take into account the slug of parent entries in generating their own. I use this:

`{parent.uri ?? ''}/{slug}`

> **Comments:**
> **username_0**: Thanks Jamie for your reply!  `{parent.uri ?? ''}/{slug}` did the trick  

---

