Using a token such as [term:parents:join:?] allows you to split an array of variables by a string.

[term:parents:join:string] performs as expected and produces the url "termstringtermstringterm"

[term:parents:join:/] does not perform as expected: "termtermterm"

Using hex codes as an attempt at a workaround I discovered the problem:
[term:parents:join:%2f] results in "term2fterm2fterm" - Pathauto is stripping the special characters from this token as it would from the term title.

This is a tricky one as the term names should be parsed but the splitter string shouldn't be.

Comments

dave reid’s picture

Status: Active » Fixed

This is why we added the join-path token. You should use [term:parents:join-path]. You'll need to update to the latest Pathauto 7.x-1.x-dev for the token to be available.

duaelfr’s picture

Hi Dave,

What about [node:menu-link:parents:join:?] ?
I try to reproduce old [menupath] aliases but I may mess up something...

Could you direct me please ?

dave reid’s picture

Use [node:menu-link:parents:join-path]

duaelfr’s picture

First it gave me an error then I updated to lastest dev version.
Thank you.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.