Closed (duplicate)
Project:
Custom Breadcrumbs
Version:
6.x-2.x-dev
Component:
custom_breadcrumbs
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Dec 2010 at 07:14 UTC
Updated:
21 Aug 2011 at 19:00 UTC
I'm content one content type to another via nodereference. So, in my custom breadcrumb, I've chosen "[field_profile_reference-title]" which is my nodereference field.
The title shows up correctly, but the link has spaces in-between each word with the "%20" between each word. Is there a way to correct this?
Comments
Comment #1
MGN commentedIf you are using the pathauto module you can clean the path using your pathauto rules by starting the path segment with the
<pathauto>special identifier (provided with the custom_breadcrumbs_special_identifiers module). You might try something likeComment #2
MGN commentedMarking this as fixed because I believe the question has been answered. If there is more to do on this, please reopen
Comment #3
Stomper commentedI am having similar issues.
I have to custom content types, question and answer. Both content types have custom url aliases (pathauto). question: question/[nid] and answer: answer/[nid]. The answer content type has a nodereference to a specific question content type. I am developing on a localhost so the home path is localhost/drupal.
In the custom breadcrumb settings for the answer content type I have set up a noderefere placeholder token. Under "Titles" I have "[field_questionref-title]" and under "Paths" I have "[field_questionref-path]."
On the answer node itself, when I click the breadcrumb the path is "localhost/drupal/drupal/question/[nid]," there is an extra "/drupal" appended to the path despite it not being present in the custom url alias for the question content type (referenced node type). I have tried "
|[field_questionref-path]" but it yields a path of "localhost/drupal/drupalquestion/[nid]." Note both the additional "drupal" but the missing "/".
Is it possible remove things from a path url in custom breadcrumbs?
Thanks
Comment #5
Stomper commentedWait. Problem is still unfixed/addressed.
Comment #6
chrisf-qualis commentedI am experiencing the same issue -- duplication of the first segment of a path alias. E.g. a page node/12 which has a path alias of foo/bar will show up as foo/foo/bar in the custom breadcrumbs generated link. I am not using custom breadcrumb rules, but instead pointing the module to my secondary links menu.
(Setting this as active since Stomper also mentioned having the issue, and I can't find a solution to it elsewhere.)
Comment #7
Stomper commentedSolution?
Comment #8
MGN commentedThe problem here is that the token has the base path prepended (courtesy of the url() function), even though it is not a -url token.
This seems to be a long-standing issue in the cck queue. See #654976: Confusion regarding cck user and node reference -path and -url tokens . I had forgotten that this came up in the custom breadcrumbs issue queue two years ago. Perhaps the patch in that queue will help.
Since custom breadcrumbs can only use the information provided by the token (it doesn't provide the information or modify it), there is nothing that can be done to fix this in custom breadcrumbs.
Marking this as a duplicate of the other issue.