Thanks Jonathan, it works! If I want to have a link inside file abc to anchor [[a]] I have to use [[mylink #a]] - that's ok!
But how link from file def to abc#a? I have tried [[mylink file:abc#a]] - this links to file://abc%23a What is the correct syntax? Regards, Martrin 2011/7/24 Jonathan Lundell <[email protected]> > > 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*%23*a" and > the result is *"invalid request*". > Web2py does not like "%23" instead of "#" as a part an url? > > > You want URL(…, anchor='a'). >

