Paths that are generated by the pathauto module don't render as links in the breadcrumb. This is presumably because in easy_breadcrumb.blocks.inc on line 81 drupal_valid_path() doesn't validate them as a path.

Comments

sonemonu’s picture

Status: Active » Fixed
sonemonu’s picture

Status: Fixed » Closed (fixed)
gippy’s picture

Version: 7.x-1.9 » 7.x-1.0
Status: Closed (fixed) » Active

Are you sure that drupal_valid_path() will take a path alias?

If you change:
$valid_path = drupal_valid_path($segment_url);
to:
$valid_path = drupal_valid_path(drupal_get_normal_path($segment_url));
then it will return TRUE if $segment is a valid URL alias.

Here's an example that checks if a URL alias is valid:
http://drupalcontrib.org/api/drupal/drupal%21modules%21path%21path.admin...

sonemonu’s picture

Version: 7.x-1.0 » 7.x-1.11
Assigned: Unassigned » sonemonu
Status: Active » Closed (fixed)

Done, thank you gippy.

waqasnasir’s picture

Version: 7.x-1.11 » 6.x-1.18

I am having the same problem that pathauto links are displayed just as text. I tried to replace the line 81 with the mentioned code.
But now i am getting the error "Fatal error: Call to undefined function drupal_valid_path() in C:\xampp\htdocs\sites\all\modules\easy_breadcrumb\includes\easy_breadcrumb.blocks.inc on line 82"

What should i do, it is urgent for me. I have tried clear the cache, enable disable module and run cron ..
Any suggestion, i am a beginner in drupal.

waqasnasir’s picture

Anyone to help me , i am waiting for expert opinion ... please

waqasnasir’s picture

Issue summary: View changes

Removed some possibly incorrect clarification.

  • Commit 2b35b68 on master, 7.x-1.x, 7.x-2.x by sonemonu:
    Issue #1597422 by mechler: Fixed paths that are generated by the *...
  • Commit d6663a2 on master, 7.x-2.x by sonemonu:
    * Issue #1597422 by mechler, gippy: Fixed paths that are generated by...