Skip to main content
edited tags
Link
Brad Bell
  • 67.6k
  • 6
  • 75
  • 145
deleted 11 characters in body
Source Link
Brad Bell
  • 67.6k
  • 6
  • 75
  • 145

In CraftCMS v2Craft 2.x you have the option of setting the top-level entries URL format for a structure section separately from nested entries i.e. top-level/{slug} and {parent.uri}/{slug}

But in CraftCMS v3Craft 3 the same URL format is applied for all entries within the structure section.

This means if you use top-level/{parent.uri}/{slug} it works fine for a top-level entry but then nested entries have the first segment duplicated, e.g. top-level/top-level/some-parent/the-slug. How does one achieve the same level of URL formatting for structure entries in CraftCMSCraft 3?

In CraftCMS v2.x you have the option of setting the top-level entries URL format for a structure section separately from nested entries i.e. top-level/{slug} and {parent.uri}/{slug}

But in CraftCMS v3 the same URL format is applied for all entries within the structure section.

This means if you use top-level/{parent.uri}/{slug} it works fine for a top-level entry but then nested entries have the first segment duplicated, e.g. top-level/top-level/some-parent/the-slug. How does one achieve the same level of URL formatting for structure entries in CraftCMS 3?

In Craft 2.x you have the option of setting the top-level entries URL format for a structure section separately from nested entries i.e. top-level/{slug} and {parent.uri}/{slug}

But in Craft 3 the same URL format is applied for all entries within the structure section.

This means if you use top-level/{parent.uri}/{slug} it works fine for a top-level entry but then nested entries have the first segment duplicated, e.g. top-level/top-level/some-parent/the-slug. How does one achieve the same level of URL formatting for structure entries in Craft 3?

Source Link
Rich Hayler
  • 187
  • 1
  • 10

{parent.uri}/{slug}

In CraftCMS v2.x you have the option of setting the top-level entries URL format for a structure section separately from nested entries i.e. top-level/{slug} and {parent.uri}/{slug}

But in CraftCMS v3 the same URL format is applied for all entries within the structure section.

This means if you use top-level/{parent.uri}/{slug} it works fine for a top-level entry but then nested entries have the first segment duplicated, e.g. top-level/top-level/some-parent/the-slug. How does one achieve the same level of URL formatting for structure entries in CraftCMS 3?