You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Janne Jalkanen (JIRA)" <ji...@apache.org> on 2008/05/11 20:17:55 UTC
[jira] Resolved: (JSPWIKI-260) MORE link of ReferringPagesPlugin is
wrongly rendered.
[ https://issues.apache.org/jira/browse/JSPWIKI-260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Janne Jalkanen resolved JSPWIKI-260.
------------------------------------
Resolution: Fixed
Fixed in 2.7.0-svn-22.
> 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.8
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.