On Mar 21, 2012, at 12:49 PM, Cliff wrote: > > Here is a snippet of javascript code: > window.location.href = "{{=URL('edit', args=[request.args(0), > '#tabs-2'])}}"; > > Notice the '#' in the args list. > > URL persists in rendering the '#' as %23, which causes Web2py to throw > an 'Invalid Request' page. > > I have tried using XML to preserve the pound sign, but to no avail. > > How can I work around this?
Try adding the argument anchor='tabs-2' to URL().