From 1faf14105b1ee85606b14d35bc51b19e2b91bf80 Mon Sep 17 00:00:00 2001 From: Massimo DiPierro Date: Mon, 12 Mar 2012 15:27:11 -0500 Subject: [PATCH] patch 705, not extensions in URL for static files, thanks guruyaya --- VERSION | 2 +- gluon/html.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 6712cef3..d7932aa6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.7 (2012-03-12 15:15:29) dev +Version 1.99.7 (2012-03-12 15:27:08) dev diff --git a/gluon/html.py b/gluon/html.py index abcf72df..0ac760f7 100644 --- a/gluon/html.py +++ b/gluon/html.py @@ -268,6 +268,10 @@ def URL( if '.' in function: function, extension = function.split('.', 1) + # if the url gets a static resource, don't force extention + if controller == 'static': + extension = None + function2 = '%s.%s' % (function,extension or 'html') if not (application and controller and function):