Once navigated to a child page, parent slug stays "stuck" in the site url.
-
I find myself in a strange situation. I’m converting a static xhtml/css site into a custom theme and have run into trouble using the parent/child relationship, in an effort to keep my pages (not posts) organized in the back end.
My permalink settings are set to custom /%postname%.html as it stands.
When I navigate around the parent pages, everything works fine. I can navigate from page to page and the url is refreshed according to the page I want to view.
e.g.
/about
/preview
/orderHowever, as soon as I click on a child page
e.g.
/about/book
/about/career
/about/authorthe parent slug of that child remains in the url even after I navigate away from the child page, which breaks my navigation and causes 404s.
So say I want to navigate from /about/book back to the parent page. When I return my url looks like this:
/about/about
The result is a 404 page and a major headache. Help! Does anyone know why this is happening and what I would need to do to fix it?
One possible solution is to scrap the parent/child relationship altogether, but I’d rather keep it for organizational purposes.
Thanks in advance.
- The topic ‘Once navigated to a child page, parent slug stays "stuck" in the site url.’ is closed to new replies.