Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-260

MORE link of ReferringPagesPlugin is wrongly rendered.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.0, 2.6.1, 2.6.2
    • 2.6.3
    • Plugins
    • None

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            brushed Dirk Frederickx
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: