Basic info
- I have a structure with a handle
about
. - The Entry URI format is
about/{slug}
. EDIT: also tried it with just{{ slug }}
- I created a child page called "Privacy Policy" with the slug
privacy-policy
. It has a parent of the page "About SAFS" (slugabout-safs
). - I can only access the page at
mysite.com/about/about-safsprivacy-policy
. If I go tomysite.com/about/privacy-policy
, I get a 404. - If I include
{{ entry.slug }}
in the template, it printsprivacy-policy
.
Edit: This is my Settings > Sections > About after changing slug to just { slug }
My question
Why is the parent's slug being inserted into the URI, and how do I change that?
Possibly relevant info
All the top-level pages in the About structure display on a single page, using this template for the entries:
{% if entry.level == 1 %}
{% redirect siteUrl|trim ~ 'about#' ~ entry.slug %}
{% else %}
{# normal template #}
For the About index template, I include:
{% set link = siteUrl ~ "/about" %}
EDIT: I also tried removing the redirect from the template, and I'm getting the same routing issue for the privacy-policy
entry.