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

Reply via email to