diff --git a/VERSION b/VERSION index bee197e1..ef976750 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.7 (2012-04-07 19:55:06) dev +Version 1.99.7 (2012-04-07 20:04:15) dev diff --git a/gluon/html.py b/gluon/html.py index 73710f73..584db9ce 100644 --- a/gluon/html.py +++ b/gluon/html.py @@ -261,6 +261,8 @@ def URL( else: raise SyntaxError, 'when calling URL, function or function name required' elif '/' in f: + if f.startswith("/"): + f = f[1:] items = f.split('/') function = f = items[0] args = items[1:] + args @@ -277,7 +279,7 @@ def URL( function2 = '%s.%s' % (function,extension or 'html') if not (application and controller and function): - raise SyntaxError, 'not enough information to build the url' + raise SyntaxError, 'not enough information to build the url (%s %s %s)' % (application, controller, function) if args: if url_encode: