>From the book: *If you LOAD a component having the .load extension and the corresponding controller functionredirects to another action (for example a login form), the .load extension propagates and the new url (the one to redirect too) is also loaded with a .load extension. *
I have a chain LOADs (one LOAD loads another, depending on the input), but at the end of the work there should be a redirect without any ".load". Yes, I have read some threads (e.g. http://comments.gmane.org/gmane.comp.python.web2py/68401) Anthony wrote: *Your component isn't redirecting, so this is not due to the propogation of the .load extension upon redirect. However, the URL function will automatically use the extension of the current request if the extension isn't specified (unless the extension of the current request is html). Since the request that loads the component has a .load extension, the URL function will automatically add a .load extension as well. To avoid this, just specify an explicit extension (e.g., extension='html'). Note, if you want the link to point to an html page, but you don't want the resulting URL to actually include the .html extension, then you can explicitly set extension=False. In that case, web2py will default to requesting the .html view (as it always does when there is no url extension), but it won't show .html in the URL. * I have tried a code like this (shortened): def index():... def sub1():... def sub2(): form=FORM( INPUT(_type='text', _name='tsub2'), INPUT(_type='submit'), ) if form.accepts(request, session): return dict(form=LOAD('default','sub3.load', ajax=True,vars={'text':form.vars.tsub2})) return dict(form=form) def sub3(): redirect(URL('index2',extension='html',vars={'text':request.vars.text})) but I did not get a new page "index2". I got the "old" page ("index") with the content of index2.html at the end. Any ideas what is wrong? Regards, Martin --