Closed (fixed)
Project:
Breadcrumbs by path
Version:
7.x-1.0-alpha6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 May 2012 at 17:36 UTC
Updated:
1 Mar 2013 at 22:20 UTC
Hello, Great module :)
if use i18n module and add prefix language in path, this module don't work.
if the drupal is in a subfolder on server, this module don't work.
change this lines in module and solved problems exposed.
function breadcrumbs_by_path_page_alter(&$page) {
// Start with getting the current URL
- $uri = ltrim(request_uri(), '/');
+ $path = current_path();
+ $uri = drupal_get_path_alias($path);
// build a breadcrumb trail and set the breadcrumb
$trail = _breadcrumbs_by_path_build_trail($uri);
drupal_set_breadcrumb($trail);
}
thanks for the module.
Comments
Comment #1
jide commentedI confirm, prefixed paths with i18n make the module fail. This fixes it.
Comment #2
rootical commentedWhy not merging it to the module`s repository?
Comment #3
opdaviesThis has been committed to 7.x-1.x-dev.
Thanks,
Oliver :)
Comment #4
criacaosites commentedtank you very much for this tip