To build the node/add URL for node types with underscores in the name the underscores must replaced by hypens.

Comments

wallebart’s picture

Status: Active » Needs review

As in book module the URL should built like

line 101     $links['book_add_child']['href'] = 'node/add/'. str_replace('_', '-', $child_type);
line 105     $links['book_add_child']['href'] = 'node/add/'. str_replace('_', '-', $child_type_book_default);

Unfortunately my cvs doesn't work at the moment, therefore I'm not able to submit a real patch.
greetings

beginner’s picture

Status: Needs review » Fixed

Thanks wallebart for the report and the solution.

The fix will be part of the upcoming alpha1 release.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.