Hi, I have tried the fix for the "Title and path for custom vocabulary and term doensn't work well" issue. And it worked well but found another error:

I use now only custom vocabulary:

title:
kenniscentrum
whitebooks
[term]

path:
kenniscentrum
whitebooks
whitebooks/categorie/[termpath-raw]

I get with those setting this texts as breadcrumb:
Home › kenniscentrum › whitebooks › Algemeen

That is correct but the link of the text Algemeen is wrong:
http://site.com/whitebooks/categorie/%252FAlgemeen

It should be http://site.com/whitebooks/categorie/algemeen

If is use for link only [termpath-raw] I get only http://algemeen/, which is the correct term (not with A but a)

and if I use whitebooks/categorie[termpath-raw] I get http://site.com/whitebooks/categorie/Algemeen (only A is wrong, it must be a)

It seems if I use whitebooks/categorie/[termpath-raw] I get twice // and it formed as results the /%252F.

I also tried to use only [termalias] as link but I get http://site.com/whitebooks/categorie/algemeen-0 , so the -0 part in the end is wrong for me

All options are the same as the other issue. Thank you

Comments

MGN’s picture

Status: Active » Postponed (maintainer needs more info)

Does this only happen with tokens? If you put in plain text, is the url correct?

I ask because I *think* these are all pathauto issues now.

What version of pathauto are you using, and have you checked the pathauto issue queue ?

There are some known issues and patches available like #420856: [termpath] and [termpath-raw] contain extra slash and #343851: pathauto_cleanstring() does not convert to lowercase (consolidate all text altering code to pathauto_cleanstring).

cesarian’s picture

Hi, yes, it's a bug in the autopath. I tried the patch of #420856: [termpath] and [termpath-raw] contain extra slash and it worked. Only the patch #343851: pathauto_cleanstring() does not convert to lowercase did not work for me.

MGN’s picture

Try the following for the last element of your path (see the special identifiers section on the breadcrumb create form for another example)

<pathauto>|whitebooks/categorie/[termpath-raw]

This will clean the path using the pathauto replacement rules.

cesarian’s picture

Hi, I tried that and get:

http://site.com/whitebooks/categorie/Business-IT

for the term Business & IT.

So the url is correct but only the capitals are wrong but in this case it still work (I get the right page). I use the patch of "#420856: [termpath] and [termpath-raw] contain extra slash"

but not the one from "#343851: pathauto_cleanstring() does not convert to lowercase".

Also I found another error:

The last term in the list is Oracle Tools but on the page I got another term: Enterprise Java, which is the third term in the list.

So I got title: enterprise java while it should be oracle tools
And url: Enterprise-Java while it should be Oracle-Tools

cesarian’s picture

Status: Postponed (maintainer needs more info) » Fixed

Hi I saw that the fix for "#343851: pathauto_cleanstring() does not convert to lowercase" is also compatible with my version. So I tried is and it is fixed. Everything works fine now except the bug of the last term I mention above. But I will open a new bug report for it. Thanks

Status: Fixed » Closed (fixed)

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