Handle references to .html pages, for example the link to security. We can

fix the links, but we need to keep the old references for links coming
in from other sites.
This commit is contained in:
Magnus Hagander
2010-06-11 14:37:17 +02:00
parent c1e93bf2bb
commit 405fe4fafc
2 changed files with 5 additions and 0 deletions

View File

@ -92,6 +92,9 @@ urlpatterns = patterns('',
'document_root': '../media',
}),
# If we're getting an attempt for something ending in HTML, just get rid of it
(r'^(.*)\.html$', 'pgweb.legacyurl.views.html_extension'),
# Fallback for static pages, must be at the bottom
(r'^(.*)/$', 'pgweb.core.views.fallback'),
)