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 405DDD935 for ; Tue, 28 Aug 2012 12:11:03 +0000 (UTC) Received: (qmail 47798 invoked by uid 500); 28 Aug 2012 12:11:02 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 47441 invoked by uid 500); 28 Aug 2012 12:10:59 -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 47390 invoked by uid 99); 28 Aug 2012 12:10:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Aug 2012 12:10:57 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.250.139 is neither permitted nor denied by domain of adrianosf@gmail.com) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Aug 2012 12:10:50 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1T6Kco-0002z3-2i for users@wicket.apache.org; Tue, 28 Aug 2012 05:10:30 -0700 Date: Tue, 28 Aug 2012 05:10:30 -0700 (PDT) From: asfernandes To: users@wicket.apache.org Message-ID: <1346155830060-4651562.post@n4.nabble.com> In-Reply-To: References: <503B6613.6070103@gmail.com> <1346094198931-4651539.post@n4.nabble.com> <1346153696758-4651560.post@n4.nabble.com> Subject: Re: Mounting URLs with locale prefix MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Martin Grigorov-4 wrote > > The segment with the locale should be removed by the IRequestMapper as > LocaleFirstMapper does. > But on UrlRenderer#renderContextRelativeUrl, getBaseUrl() shows pt-br/home when I'm accessing http://localhost:8990/Site/pt-br/home This caused my tags to be rewritten from: to: The first is the one I want, since the resources is also mounted with LocaleFirstMapper, and I want it there. So maybe some setBaseUrl call is missing, to adjust the URL on the UrlRenderer. Martin Grigorov-4 wrote > > But in your case you have the locale hardcoded in the .css file, or at > least this is what I understood, and Wicket should not remove anything > that is not added by it. > It's not hardcoded. It's relative and I want Wicket to preserve the locale on the URL, but it's stripping it. My resources are not localized, but looks better for me to mount them under the locale prefix, since Wicket could not rewrite embedded or inline CSS, and I want to use relative paths there too. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Mounting-URLs-with-locale-prefix-tp4651528p4651562.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org For additional commands, e-mail: users-help@wicket.apache.org