If you don't specify an extension in URL(), I think it will just use the 
extension of the current request, which is .load in this case. Try 
explicitly setting extension=False:
 
{{=URL('default','campaigns',args=['edit',n.id],extension=False)}}
 
 
Anthony
 

On Friday, July 1, 2011 1:24:11 PM UTC-4, David J wrote:

> I am running latest in trunk. 
>
> I have this code being called from a LOAD function; 
>
> I see it appends the '.load' to the generated URL 
>
> When I think it should be 
>
> /campaigns/edit/5435 
>
> It returns 
>
> /campaigns.load/edit/5435 
>
>
> <table class="grid">
> {{ for n in items:}}
> <tr>
> <td>{{= n.campaign_name }}</td>
> <td></td> 
>
> <td style="text-align:right;">
> <a href="{{= URL('default','campaigns',args=['edit',n.id])}}"><img 
> src="{{= URL('static','images/editButtonSmall.gif') }}" alt="Edit {{= 
> n.campaign_name }}" /></a></td> 
>
> </tr> 
>
>     

Reply via email to