If content-type contatins "_" in machine-readablename (Type) then URL should contain "-". Example: Type: educ_page. URL for add child page will be node/add/educ-page

Decision: In file book_inherit_type.module
Row: 20
Current row: $links[$module]['href'] = 'node/add/'. $child_type;
Change to $links[$module]['href'] = 'node/add/'. str_replace("_", "-", $child_type);

Or use special Drupal API function for prepare URL if that exists (I do not know).

Comments

criznach’s picture

Ok, I think you're right and I'll take another look. I thought I'd borrowed code like yours from book.module but maybe not. Thanks!

criznach’s picture

Status: Active » Fixed

Should be fixed in 6.x-1.x-dev. Wait for the snapshot to be published or check out from CVS. Thanks.

Status: Fixed » Closed (fixed)

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