<p>I kind of found a work around, but doesn't seem like it's the correct way to be doing this. </p>

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

CC BY-SA 4.0
2019-09-22T15:19:42.743Z
This is the only answer that seems to allow for a non-duplicated static segment in the url after trying all answers displayed here and also at the related question here: https://craftcms.stackexchange.com/questions/23610/parent-uri-slug
Tchick
CC BY-SA 4.0
2021-04-21T10:21:42.080Z
This worked best for me as well. It should be marked as the official answer
Todd Prouty
CC BY-SA 4.0
2018-06-08T14:10:44.333Z
2018-06-08T14:10:44.333Z
Kenyon Kowal
<p>Reviving this quite late, but the docs state the following as the correct method:</p>

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

CC BY-SA 4.0
2019-07-30T00:53:48.547Z
2019-07-30T00:53:48.547Z
Thabang Chukura
<p>In Craft 2 there used to be a <code>Nested Entries</code> field, but this is not available in Craft 3.</p>

<p>I know I can do <code>{parent.uri}/{slug}</code> in the <code>Entry URI Format</code> field, but if I want it to be appended by something static it doesn't work. </p>

<p>i.e. <code>static/{parent.uri}/{slug}</code> doesn't work because children uri sets to <code>static/static/parent/child</code> (edited)</p>

<entries><craft3><structure>
Nested Entries in Craft 3
# Nested Entries in Craft 3

(Asked by: username_0 on 2018-06-08)

In Craft 2 there used to be a `Nested Entries` field, but this is not available in Craft 3.

I know I can do `{parent.uri}/{slug}` in the `Entry URI Format` field, but if I want it to be appended by something static it doesn't work.

i.e. `static/{parent.uri}/{slug}` doesn't work because children uri sets to `static/static/parent/child` (edited)

**Tags:** entries, craft3, structure

---

## 2 answers

### Answer by username_0 on 2018-06-08. Score: 9

I kind of found a work around, but doesn't seem like it's the correct way to be doing this.

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

> **Comments:**
> **username_1**: This is the only answer that seems to allow for a non-duplicated static segment in the url after trying all answers displayed here and also at the related question here: https://craftcms.stackexchange.com/questions/23610/parent-uri-slug  
> **username_2**: This worked best for me as well. It should be marked as the official answer  

---

### Answer by username_3 on 2019-07-30. Score: 2

Reviving this quite late, but the docs state the following as the correct method:

`{parent.uri}/{slug}`


---

