<p>It needs to be:</p>

<pre><code>{destination.first().slug}
</code></pre>

<p>Or if this is for Craft 3:</p>

<pre><code>{destination.one().slug}
</code></pre>

CC BY-SA 3.0
2018-01-24T02:51:58.880Z
2018-01-24T02:51:58.880Z
Brandon Kelly
<p>I have a channel with an entry type which has a simple dropdown for <code>{region}</code> and an entries fieldtype which links to a channel of destinations.</p>

<p>I'd like the URL format for the channel to be <code>/region/destination/slug</code>. If I do <code>/{region}/{destination.url}/{slug}</code> the output is <code>/region-name//entry-slug</code>, i.e. nothing is output for the destination.</p>

<p>What should I have where I currently have <code>{destination.url}</code>?</p>

<url><entries-field>
Setting channel url format to include value of entries fieldtype URL
# Setting channel url format to include value of entries fieldtype URL

(Asked by: username_0 on 2018-01-24)

I have a channel with an entry type which has a simple dropdown for `{region}` and an entries fieldtype which links to a channel of destinations.

I'd like the URL format for the channel to be `/region/destination/slug`. If I do `/{region}/{destination.url}/{slug}` the output is `/region-name//entry-slug`, i.e. nothing is output for the destination.

What should I have where I currently have `{destination.url}`?

**Tags:** url, entries-field


---

## 1 answers

### Answer by username_1 on 2018-01-24. Score: 4 | Accepted answer

It needs to be:
{destination.first().slug}

Or if this is for Craft 3:
{destination.one().slug}


---

