Index: modules/node/node.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/node/node.module,v
retrieving revision 1.1279
diff -u -r1.1279 node.module
--- modules/node/node.module	25 Jun 2010 19:33:47 -0000	1.1279
+++ modules/node/node.module	4 Jul 2010 21:42:06 -0000
@@ -1876,6 +1876,10 @@
     );
   }
   $items['node/%node'] = array(
+    'title callback' => 'node_page_title',
+    'title arguments' => array(1),
+    // The page callback also invokes drupal_set_title() in case
+    // the menu router's title is overriden by a menu link.
     'page callback' => 'node_page_view',
     'page arguments' => array(1),
     'access callback' => 'node_access',
@@ -2502,6 +2506,9 @@
  * Menu callback; view a single node.
  */
 function node_page_view($node) {
+  // If there is a menu link to this node, the link becomes the last part
+  // of the active trail, and the link name becomes the page title.
+  // Thus, we must explicitly set the page title to be the node title.
   drupal_set_title($node->title);
   $uri = entity_uri('node', $node);
   // Set the node path as the canonical URL to prevent duplicate content.
