diff --git a/tutorial/sitebuilder.pike b/tutorial/sitebuilder.pike
index a82f4d3574ca1eee621bc80568be0dac3eac7690..31a0778fcb99f0b5f0b284dd4f0e3fcb1d1f2101 100644
--- a/tutorial/sitebuilder.pike
+++ b/tutorial/sitebuilder.pike
@@ -9,7 +9,7 @@ SGML wmml_to_html(SGML data)
 string mkfilename(string section)
 {
   string s=::mkfilename(section);
-  return replace(s,".md.html",".md");
+  return replace(s,".md.html",".html.md");
 }