[web2py] How to get pound sign in url or work around it?

2012-03-21 Thread Cliff
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

Re: [web2py] How to get pound sign in url or work around it?

2012-03-21 Thread Jonathan Lundell
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 Req

Re: [web2py] How to get pound sign in url or work around it?

2012-03-21 Thread Jonathan Lundell
On Mar 21, 2012, at 2:39 PM, Cliff wrote: > > For anyone interested, there are a few more things you have to do. > If you just add anchor='tabs-2' to URL(), it renders /bla/edit/ > 5#tabs-2. > > Not an invalid request, but it doesn't get you to the anchor, either. Just curious--why not? > > So