Broken "Home" link

pwolanin - March 6, 2006 - 02:08
Project:Burnt
Version:HEAD
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Thanks for making this theme available- I really like it. However, in template.php there seems to be a bug in the phptemplate_menu_tree function. This does not generate the correct URL for the navigation menu item "home". For example, if I am on the /admin page, the URL of the Home menu item becomes /admin/node. Also, the "home" URL from this function does not seem to work with the front_page module.

<?php
function phptemplate_menu_tree($pid = 1) {
  if (
$tree = menu_tree($pid)) {
   
$output .= "\n<ul id=\"navlist\">\n";
    if (
$pid == 1) {
     
$output .= "<li><a href=\"node\">home</a></li>";
    };
   
$output .= $tree;
   
$output .= "\n</ul>\n";
    return
$output;
  }
}
?>

#1

der - March 10, 2006 - 21:05
Status:active» fixed

#2

Anonymous - March 24, 2006 - 21:15
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.