[ 
https://issues.apache.org/jira/browse/JSPWIKI-260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Florian Holeczek closed JSPWIKI-260.
------------------------------------


> MORE link of ReferringPagesPlugin is wrongly rendered.
> ------------------------------------------------------
>
>                 Key: JSPWIKI-260
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-260
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Plugins
>    Affects Versions: 2.6.0, 2.6.1, 2.6.2
>            Reporter: Dirk Frederickx
>             Fix For: 2.6.3
>
>
> The ReferredPagesPlugin is first rendering its internal text in wiki-markup. 
> At the end, the result is convered in HTML.
> However, the "more...." link gets composed incorrectly as html (url)
> {code}                    Object[] args = { "" + ( links.size() - items),
>                                       context.getURL( WikiContext.INFO, 
> page.getName() ) };
>                     extras = MessageFormat.format(extras, args); 
>                     wikitext += extras;
> {code}
> This will render something like
> {code}
>     [more|/some-path/PageInfo?page=<pagename>]
> {code}
> which gets rendered wrongly as an attachment link, because of the embedded / 
> character.
> Proposed solution:
> Add to jspwiki.properties an InterWiki link which allows easy links to the 
> page info. 
> {code}
>     jspwiki.interWikiRef.Info = PageInfo.jsp?page=%s
> {code}
> which allows following markup, usable by the plugin
> {code}
>    [more|Info:<pagename>]
> {code}
> dirk

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to