bookpathalias doesn't quite work the way that I expected.

I was adding a child page to articles/general, where articles is the top-level book and general is a child. If I create a child of general, I would have expected it to be given the path: articles/general/title.

However, it is actually given articlesgeneral/title. So, it doesn't use the pathalias at all.

Is there something I'm missing?

Comments

greggles’s picture

This sounds like the articles/general title _is_ being used but then the / is being removed and turning it into articlesgeneral. Does that seem like an accurate description?

There were some bugs related to that recently so I could definitely believe that is the case (and needs to be fixed, and the fix is relatively easy)...

divrom’s picture

Yeah, so what should be articles/general/title becomes articlesgeneral/title.

I wasn't sure if this was a bug, or how it's meant to function.

greggles’s picture

Title: bookpathalias » forward slash removed from bookpathalias
Component: Miscellaneous » Code
Category: feature » bug

Updated title and category...

Can you confirm that your version of 5.x-2.x-dev is the very latest? I tried to fix this problem in #224243: Slashes for [termalias] token field must not be removed. so if it's still broken that that's a weird situation...

divrom’s picture

Darn it!

I just double-checked and I'm actually on 5.x-2.1. I'll upgrade and report back.

divrom’s picture

Status: Active » Fixed

Sorted. Cheers.

greggles’s picture

Status: Fixed » Closed (duplicate)

Great to hear - thanks for your quick responses.