Return-Path: Delivered-To: apmail-incubator-jspwiki-dev-archive@locus.apache.org Received: (qmail 62389 invoked from network); 5 May 2008 18:50:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 May 2008 18:50:19 -0000 Received: (qmail 67132 invoked by uid 500); 5 May 2008 18:50:20 -0000 Delivered-To: apmail-incubator-jspwiki-dev-archive@incubator.apache.org Received: (qmail 67124 invoked by uid 500); 5 May 2008 18:50:20 -0000 Mailing-List: contact jspwiki-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-dev@incubator.apache.org Delivered-To: mailing list jspwiki-dev@incubator.apache.org Received: (qmail 67113 invoked by uid 99); 5 May 2008 18:50:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2008 11:50:20 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 May 2008 18:49:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 949DE234C100 for ; Mon, 5 May 2008 11:49:55 -0700 (PDT) Message-ID: <1410053377.1210013395593.JavaMail.jira@brutus> Date: Mon, 5 May 2008 11:49:55 -0700 (PDT) From: "Dirk Frederickx (JIRA)" To: jspwiki-dev@incubator.apache.org Subject: [jira] Created: (JSPWIKI-260) MORE link of ReferringPagesPlugin is wrongly rendered. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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=] }}} 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:] }}} dirk -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.