I already filed an issue to core, about a problem with the $directory cariable which misbehaves and loses the image when viewing an aliased node.

http://drupal.org/node/65794

There is a second bug which I believe should be fixed k2. The code which produces the "node/edit" link breaks when the node is aliased.

For "node/3" which is aliased as "news/announcent-2006-5-25", the theme produces "news/announcent-2006-5-25/edit", which of course does not work. A possible fix is to replace "$node_url" with "$base_path . '/node/' . $node->nid".

Comments

cog.rusty’s picture

And the $directory variable in node.tpl.php needs a front slash to work properly when viewing an aliased node, if they do not include the front slash in core.

StevenSokulski’s picture

Is this being left up to the global url / node / node->nid ? I'm about to put this hack into place but would like to know if there is a better answer yet?

cog.rusty’s picture

This and some similar issues have been addressed in the contented7 theme (which is based on K2).

http://drupal.org/project/issues/contented7, "closed" issues.

If I recall correctly the maintainer discussed it in drupal's IRC channel and came up with some solutions.