is your homepage mounted on /welcome? maybe you did not correctly
implement the url coding strategy, make sure it encodes your homepage
as /en/welcome and not as /

just guessing since you didnt show any code. feel free to create a
quickstart that reproduces the issue and attach it to a jira ticket.

-igor

On Tue, Aug 17, 2010 at 3:43 AM, Laurentiu Trica
<[email protected]> wrote:
> Hello,
>
> I followed the
> https://cwiki.apache.org/confluence/display/WICKET/Wicket+and+localized+URLs
>  tutorial.
> I have, since, a problem with my homepage.
>
> It gets from "/" to "/en" and then to "/en/welcome" and back again to "/",
> then "/en" and "/en/welcome".
>
> The first redirect is correct as I want it to go to a locale aware URL - as
> the tutorial sais. So from "/" to "/en" is perfect.
> The second redirect is correct as well because it's done from the
> application class.
> I have the getHomePage() which returns a HomePage class which makes a
> redirect (as in the following code) to a LoginPage which is mounted as
> "welcome".
>
> public HomePage() {
>    setRedirect(true);
>    setResponsePage(LoginPage.class);
> }
>
> The problem is that after the second correct redirect, somehow, the chain
> continues.
> There is another redirect to "/", which seems to have as referrer the
> "/en/welcome" page.
>
> Is there anything I can do about this? I spent a whole day trying to figure
> out the problem but I didn't.
> Thanks in advance.
>
> --
> Best regards,
> Laurentiu Trica
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to