Auto-Nav only links to home page

Permalink
Does anyone know why upgrading to 5.6.1.2 from around v5.6.0.2 would cause my site Nav to malfunction? When I edit the site Nav and preview the links, they are correct. But when I publish the page, they all point to the home page. I'm guessing it's due to incompatibility with modifications I made to it, but I don't know why that would change with an update...

http://aguadelavida.info, left sidebar.

I think I am going to try rolling back...

 
nbruley replied on at Permalink Reply
Here is the php code I'm using for the custom nav (from Remo http://www.codeblog.ch/2009/12/image-navigation-items/)...
I rolled back to the previous install and it works fine. When I checked the code before rollback, I was getting something like <a target="_blank" href= > without the values.
defined('C5_EXECUTE') or die("Access Denied.");
   $aBlocks = $controller->generateNav();
   $c = Page::getCurrentPage();
   $containsPages = false;
   $nh = Loader::helper('navigation');
   //this will create an array of parent cIDs 
   $inspectC=$c;
   $selectedPathCIDs=array( $inspectC->getCollectionID() );
   $parentCIDnotZero=true;   
   while($parentCIDnotZero){
      $cParentID=$inspectC->cParentID;
      if(!intval($cParentID)){
         $parentCIDnotZero=false;
      }else{
         $selectedPathCIDs[]=$cParentID;
nbruley replied on at Permalink Reply
My best guess is it may be something in this code that no longer is available with the updates?
if ($_c->getCollectionAttributeValue('replace_link_with_first_in_nav')) {
            $subPage = $_c->getFirstChild();
            if ($subPage instanceof Page) {
               $pageLink = $nh->getLinkToCollection($subPage);
            }
         }
         if (!$pageLink) {
            $pageLink = $ni->getURL();
         }