Hello,
The problem is that if you load a non-existing node, drupal silently renders the home page rather than issuing a "file not found" page.
The problem is in node.module, line 1174:
if (arg(0) == 'node' && is_numeric(arg(1))) {
$node = node_load(arg(1));
if ($node->nid) {
[...]
}
}
All it needs, is this at the end of the if:
} else {
drupal_not_found();
}
}
...why isn't this there in the first place? If a node isn't there... well, it isn't there, and a 404 should be returned.
Thanks,
Merc.
Comments
Comment #1
stevenpatzPlease see: http://drupal.org/node/90780
Comment #2
traxer commentedThis seems to be fixed on April 18th (published in D5.2 on July 26th). Are you sure you are using D5.2?
Comment #3
traxer commentedComment #4
mercmobily commentedHi,
This was indeed fixed.
Sorry.
Merc.