incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dirk Frederickx (JIRA)" <>
Subject [jira] Created: (JSPWIKI-260) MORE link of ReferringPagesPlugin is wrongly rendered.
Date Mon, 05 May 2008 18:49:55 GMT
MORE link of ReferringPagesPlugin is wrongly rendered.

                 Key: JSPWIKI-260
             Project: JSPWiki
          Issue Type: Bug
          Components: Plugins
    Affects Versions: 2.6.2, 2.6.1, 2.6.0
            Reporter: Dirk Frederickx

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)
                    Object[] args = { "" + ( links.size() - items),
                                      context.getURL( WikiContext.INFO, page.getName() ) };
                    extras = MessageFormat.format(extras, args); 
                    wikitext += extras;
This will render something like
which gets rendered wrongly as an attachment link, because of the embedded / character.

Proposed solution:

Add to an InterWiki link which allows easy links to the page info. 
    jspwiki.interWikiRef.Info = PageInfo.jsp?page=%s
which allows following markup, usable by the plugin


This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message