From f527bd616abcfe3ccbcc08fbdfacdb4c4a22e5f0 Mon Sep 17 00:00:00 2001
From: Martin Green <martin.speleo@gmail.com>
Date: Sun, 7 Aug 2011 17:30:18 +0100
Subject: [PATCH] bug fix for edit link for index files

---
 flatpages/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flatpages/views.py b/flatpages/views.py
index e9db223..eed5f38 100644
--- a/flatpages/views.py
+++ b/flatpages/views.py
@@ -45,7 +45,7 @@ def flatpage(request, path):
         except IOError:
             try:
                 o = open(os.path.normpath(settings.EXPOWEB + path + "index.htm"), "rb")
-                path = path + "index.html"
+                path = path + "index.htm"
             except IOError:
                 raise Http404
     else: