On Jul 23, 2011, at 10:53 PM, Martin Weissenboeck wrote:

> I have written a text page "abc" with web2py wiki containing a label [[a]].
> There are two links in default/index.html:
> <a href="http://127.0.0.1:8000/test/plugin_wiki/page/abc#a";>Link 1</a>  
> {{=A('Link 2',_href=URL('test','plugin_wiki','page',args=['abc#a']))}}
> Link 1 opens "http://127.0.0.1:8000/test/plugin_wiki/page/abc#a"; and works 
> fine.
> Link 2 tries "http://127.0.0.1:8000/test/plugin_wiki/page/abc%23a"; and the 
> result is "invalid request".
> Web2py does not like "%23" instead of "#" as a part an url?
> 

You want URL(…, anchor='a').

Reply via email to