It would be better to find a way to make the toplevel index page not be a
special case at all.
+Here is a patch:
+
--- IkiWiki/Render.pm (revision 1187)
+++ IkiWiki/Render.pm (working copy)
@@ -71,6 +71,7 @@
> Ethan
>
> Hmm, now I've had time to think about this, and this does conflict pretty hard with foo.html/Discussion
-> pages. Well, back to the drawing board.
\ No newline at end of file
+> pages. Well, back to the drawing board.
+>
+> Well, it seems unlikely that you'll have both foo/bar.html and foo/bar/index.html,
+> so why not accept either as foo/bar? This would both preserve backwards
+> compatibility, as well as allow foo/bar/Discussion.
+>
+> Ethan
+>
+> No, in order for this to work, the wiki path foo/bar/baz could be any of:
+>
+> * foo/bar/baz.html
+> * foo/index/bar/index/baz.html
+> * foo/bar/index/baz.html
+> * foo/bar/index/baz/index.html
+>
+> Or many others. Which is probably even hackier than having both foo.html and foo/.
+>
+> Ethan
\ No newline at end of file