incorrect 'Add child'-URL if name of node type contains underscores
wallebart - May 8, 2008 - 20:55
| Project: | Outline |
| Version: | 6.x-0.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
To build the node/add URL for node types with underscores in the name the underscores must replaced by hypens.

#1
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
#2
Thanks wallebart for the report and the solution.
The fix will be part of the upcoming alpha1 release.
#3
Automatically closed -- issue fixed for two weeks with no activity.