incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dirk Frederickx (JIRA)" <j...@apache.org>
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
                 URL: https://issues.apache.org/jira/browse/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
{{{
    [more|/some-path/PageInfo?page=<pagename>]
}}}
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. 
{{{
    jspwiki.interWikiRef.Info = PageInfo.jsp?page=%s
}}}
which allows following markup, usable by the plugin
{{{
   [more|Info:<pagename>]
}}}

dirk

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


Mime
View raw message