Return-Path: X-Original-To: apmail-wicket-users-archive@minotaur.apache.org Delivered-To: apmail-wicket-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 06E2DB1BC for ; Tue, 10 Jan 2012 09:16:37 +0000 (UTC) Received: (qmail 79723 invoked by uid 500); 10 Jan 2012 09:16:23 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 79127 invoked by uid 500); 10 Jan 2012 09:16:07 -0000 Mailing-List: contact users-help@wicket.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@wicket.apache.org Delivered-To: mailing list users@wicket.apache.org Received: (qmail 79079 invoked by uid 99); 10 Jan 2012 09:16:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2012 09:16:03 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=NORMAL_HTTP_TO_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chrisc@stepaheadsoftware.com designates 122.148.34.68 as permitted sender) Received: from [122.148.34.68] (HELO stepaheadsoftware.com) (122.148.34.68) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2012 09:15:53 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: Problem with relative URLs Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Tue, 10 Jan 2012 20:15:21 +1100 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problem with relative URLs Thread-Index: AczPcXESludBQhS4R2egsM7bIsl5+AABdAcQ References: From: "Chris Colman" To: X-Virus-Checked: Checked by ClamAV on apache.org The problem is related to non standard (i.e. "wicket") namespaces. In my quickstart if I change the namespace in all markup from "wicket" to "foobar" then the BPL which has only the last segment differing from the current page ends up producing an incorrect link to another page in the same path. i.e. Browser is at this page: http://127.0.0.1/content/other/o/1234/aspect/fred

Here's a relative link to another page in the same 'path'

A link to the current page fred

The above BPL href of ../../../../../jane is wrong. With 'wicket' set as the namespace the 'jane' BPL outputs 'jane' which is correct. This same code worked with the non standard namespace under 1.4.x --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org For additional commands, e-mail: users-help@wicket.apache.org