id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
7680,[PATCH] Invalid links when trac is on accessed from top-most path,shesek,cbalan,''The links in that ticket were considered as being spam_ so I added `\\notspam\\` to prevent that from happening. Ignore it.''\r\n\r\nMy Trac installation is accessed via http://trac.kelso/. When I add a menu_ like that:\r\n{{{\r\nquery = enabled\r\nquery.href = /query\r\nquery.label = Custom Query\r\nquery.order = 1\r\nquery.parent = tickets\r\n}}}\r\n\r\nIt's being rendered as `<a \\notspam\\ href="//query">Custom Query</a>`. The `//` at the beginning of the href causes Chrome and Firefox (and possibly others) to think its a link to "!http://query/".\r\n\r\nWhen I remove the `/` prefix from the href in the configuration_ the link becomes `<a \\notspam\\ href="query">Custom Query</a>`_ which doesn't work when I'm on a URL like '!http://trac.kelso/ticket/123'_ as the link is pointing to 'http:``//trac.kelso/'''ticket/'''query'.\r\n\r\nIt works fine when Trac is installed under a sub directory_ such as `http://trac.kelso/humaninternals/`_ as the link is rendered as `<a \\notspam\\  href="/humaninternals/query">Custom Query</a>`. The issue is when its rendered with two slashes at the beginning.,defect,closed,normal,MenusPlugin,normal,duplicate,patch,,0.12
