I am not sure if this issue affects anyone else, but I find that breadcrumbs generated by the menu.inc file include a link to the home page that always links to the current page. I have gone into the menu.inc and found that adding a reference to the global base_url variable fixes the problem for me:
Was

$links[] = l(t('Home'), '');

changed to...

global $base_url;
$links[] = l(t('Home'), $base_url.'/');

fixes the problem. I am not sure if this problem is unique to the way I have setup my server or if it is a bug in the code so I thought I would report it.

Comments

ñull’s picture

Instead I would use:

global $base_url;
$links[] = l(t('Home'), $base_url.'/'.variable_get('site_frontpage', 'node'));

ñull’s picture

In fact my hack makes breadcrumb home independent from .htaccess settings. In my specific case I used this in combination with
DirectoryIndex index.html index.php in my .htacess. Now you can have a normal index.html page as intro, which can be a flash presentation or whatever. After the intro you link to index.php or node and from then on this hack you will take care that you never return to the intro page.

Richard Archer’s picture

I have included a fix for this problem in another patch:
http://drupal.org/node/36465

Richard Archer’s picture

Status: Active » Fixed

I believe this has been fixed. If not, please re-open with a nice description of how to reproduce the bug.

Anonymous’s picture

Status: Fixed » Closed (fixed)