Hi,

I have the following setup:

Two pages mounted like follows:
        mountPage("App/StartPage", StartPage.class);
        mountPage("LoginPage", LoginPage.class);

In my web.xml, I have added a security constraint to the "/App/" path and
set up the form-login-page to be "/LoginPage".

This means that when I go to the address "App/StartPage", tomcat redirects
me to "/LoginPage", which is working fine. However, none of my resources are
loaded. The reason seems to be that wicket still believes that my base URL
is "/App/", when it should actually be "/". The URL shown in the browser
address field is "/App/LoginPage?0".

Resources on my LoginPage are loaded with PackageResourceReference, like:
add(new Image("logo", new PackageResourceReference(LoginPage.class,
"images/logo.png")));

Other resource, like css, are loaded like:
response.renderCSSReference(new CssResourceReference(LoginPage.class,
"style.css"));

This approach was working fine in 1.4.18. Right now I'm using 1.5.1.


I know that both the resource handling and URL rendering have been changed
in wicket 1.5, but I haven't been able to figure out what (if anything) I'm
supposed to change to make this work again. Does anyone have any ideas? Or
is there a better way to set up things?

I've been looking at this case, it feels similar to my problem but if it was
the same it should have been fixed in 1.5.1:
https://issues.apache.org/jira/browse/WICKET-4030

I hope this is understandable. Thank you for any input on this!



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wrong-path-for-resources-on-redirected-login-page-tp3920038p3920038.html
Sent from the Users forum mailing list archive at Nabble.com.

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

Reply via email to