I am intermittenitly receiving errors from Firefox (see below) when trying to access front_page through the Home link in the breadcrumbs when using the Override Home Breadcrumb feature.

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

Comments

Dublin Drupaller’s picture

Assigned: Unassigned » Dublin Drupaller

That error message suggests that you have a redirect on top of a redirect.

can you post up the following?

front page redirect link (anon):
front page redirect link (auth):

front page homebreadcrumb link (anon):

..and I'll try and recreate the problem you're having.

Dub

pr1001’s picture

front page redirect link (anon)


    // Code to get the current issue graphic
    // get current issue
    $eid = epublish_current_published_edition(1);  // pass a $pid of 1 b/c it is the ID of the (only) magazine
    // find the one item of type flexinode-4 and get its $nid
    $edition = epublish_get_edition($eid);
    $sid = epublish_assign_section($edition);
    $topics = epublish_section_topics($sid, $edition->eid);
    foreach ($topics as $topic) {
      if ($topic->tid == 0)
        {
          foreach ($topic->nodes as $nid)
            {
              $node = node_load($nid);
              if (($node->type == "flexinode-4") && ($node->status == 1))
                {
                  print "<div class='issue_cover'><a href='" . url("epublish/1/current") . "'><img src='" . url($node->flexinode_13->filepath) . "' alt='Current Issue Cover' /></a></div>\n";
                }
            }
        }
    }

front page redirect link (auth)

Same as anon.

front page homebreadcrumb link (anon)

front_page

Is that what you need?

Dublin Drupaller’s picture

Status: Active » Closed (won't fix)

yep. Thanks.

the problem is that you're redirecting the front_page to the front_page with the breadcrumb override.

front page homebreadcrumb link (anon): front_page

In other words, when a HOME link is clicked, it tries to display the front_page, but, it can't, because you're redirecting the front_page to the front_page. It will just get stuck in an infinite loop constantly being redirected to the front_page.

I hope that makes sense. You don't need to use the breadcrumb override....

I'll put in some form of check into the module to stop others making the same mistake.

Dub

Dublin Drupaller’s picture

Status: Closed (won't fix) » Closed (fixed)

closing this.