On Dec 29, 2010, at 3:25 PM, mattynoce wrote:
> 
> hi all. i have a component i'm plugging into the middle of a page, but
> i want that component to act seamlessly with the rest of the page. i
> do NOT want the component to do what components usually do and act
> independently. i need to include variable files, and components are
> the only way i can find to do that.
> 
> so when i submit forms from the component, they automatically
> append .load to redirects. i do not want this. so i found i can do:
> redirect(URL(..., extension=''))
> 
> however, when i execute other commands like this:
> def formControllerFromComponent:
>    doSomething()
>    doSomethingElse()
>    redirect(URL(..., extension=''))
> 
> doSomething() will create any links it makes with a .load extension. i
> don't want to have to go around and append extension='' to every URL
> command in my controller. is there a way we can stop propagation of
> the .load suffix? based on a variable in the load initialization?
> something like:
> {{=LOAD(c='default', f='func', args=[arg1, arg2], ajax=False,
> ajax_trap=False, loadPropagate=False)}}

URL is probably picking up the .load extension from request.extension. It might 
be more convenient to set that to 'html'.

Reply via email to