[ http://issues.apache.org/jira/browse/FOR-743?page=all ] Cyriaque Dupoirieux resolved FOR-743: -------------------------------------
Fix Version: 0.8-dev Resolution: Fixed This problem comes from the link rewritting. Add the ability to "escape" mailto addresses or links in order to avoid they are automatically rewritten by forrest. If a link or an address must appear in the text of the site, but the user does not need a real link he can prefix both by '\' character. Examples : - [EMAIL PROTECTED] will not be rewritten as a mailto link but just like text - without the \ - cf. http://svn.apache.org/viewcvs.cgi?rev=354793&view=rev > siteinfo-feedback contract returns multiple nested a<href> declarations. > ------------------------------------------------------------------------ > > Key: FOR-743 > URL: http://issues.apache.org/jira/browse/FOR-743 > Project: Forrest > Type: Bug > Components: Dispatcher (aka views) > Versions: 0.8-dev > Reporter: Gavin > Assignee: Cyriaque Dupoirieux > Fix For: 0.8-dev > > This description taken from > http://marc.theaimsgroup.com/?l=forrest-dev&m=113313199327182&w=2 > >3. index.fv provided with /samples/ has this for the footer feedback > >contract :- > > > ><forrest:contract name="siteinfo-feedback"> > > <forrest:properties contract="siteinfo-feedback"> > > <forrest:property name="siteinfo-feedback"> > > <feedback to="[EMAIL PROTECTED]" > > href="mailto:[EMAIL PROTECTED] " > > > Send feedback about the website to: > > </feedback> > > </forrest:property> > > </forrest:properties> > > </forrest:contract> > > > >The code this produces is :- > > > ><div id="siteinfo-feedback"> > > Send feedback about the website to: > > <a id="feedbackto" > >href="mailto:[EMAIL PROTECTED] samples/index.html"><a > >href="mailto:[EMAIL PROTECTED]">webmaster at > > foo.com</a></a></div> > > > >which is incorrect nesting of the <a> element and also multiple declarations > >of the href and mailto when there is no need. Should this not read > > > ><div id="siteinfo-feedback"> > > Send feedback about the website to: > > <a id="feedbackto" > >href="mailto:[EMAIL PROTECTED] > >samples/index.html"></a></div> > > > >Where is the extra.. <a href="mailto:[EMAIL PROTECTED]">webmaster at > >foo.com</a> ..coming from ?? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira