I'm having a little trouble with Custom Breadcrumbs using Tokens. Whenever I use a token such as [ogname-raw] or [title-raw] there is a problem with the custom breadcrumb's path. If there are spaces in the name being called (for instance, if the Organic Group is "Smooth Sailing") the white space is converted into a + sign ("smooth+sailing"). This only happens in the path, not the title.
I thought I could adapt to this quirk by changing Pathauto to make spaces into + instead of - or _. But Pathauto recommends not using + because it can cause unexpected behaviour.
Please let me know if this is something that I have configured improperly, or if there is something I should upgrade. Thanks for your help!
Trevor
Comments
Comment #1
jmstacey commentedI was also searching for a solution to this exact same issue. The solution that I came up with is to simply call the pathauto_cleanstring function which returns a link that conforms to whatever the pathauto rules are since that is the most likely format that a URL will be in. I will submit a proposal patch tomorrow.
Comment #2
MGN commentedI have the same issue with not being able to conform whitespace in titles to an appropriate custom breadcrumb path (ideally applying pathauto rules). This sounds like a very good addition. Could you further explain your solution or post the patch? Thanks!
Comment #3
jmstacey commentedI created a small patch to enable special behaviors on a per-crumb basis. Here's the link: http://drupal.org/node/289810
Comment #4
babbage commentedhttp://drupal.org/node/296516