Forum

Thread tagged as: Problem

Multiple Blog Sections, issue with Blog post page path

I have multiple blogs set up using sections, all at different levels to the root

In my Settings I have the Blog post page path set to

/{sectionSlug}/{postSlug}

Which is fine for sections that are at root level:

root/section

but when it's a few levels deeper:

root/subfolder/section

Links to posts lose the subfolder in the URL and get a 404 due to the path being from the root

Is there a way in the settings to have something like

{currentPath}/{sectionSlug}/{postSlug} ?

Sarah Evans

Sarah Evans 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you not just skip the initial slash?

{sectionSlug}/{postSlug}

I've realised that wouldn't work when the sectionSlug is inside a subfolder as I'd end up with

root/{sectionSlug}/{sectionSlug}/{postSlug}

I've just reworked my structure to get around it.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Do different sections live at different depths in the site?