I haven't tried it, but I wonder if something like mountBookmarkablePage("/login", LoginPage.class); in your Application instance would give what you want? Note, it's probably a bad idea to try & duplicate 'real' pages/folders such as "/" or "/app"!
Having said that though, I'd have thought youd be better off just telling the users to bookmark the IndexPage when they get there? That way, if they go back to the URL after just having been logged in, they get there, whereas if they've not been there for a while, they'll get sent to the login page anyway. /Gwyn On 11/08/06, Ingram Chen <[EMAIL PROTECTED]> wrote: > All, > > This small problem annoys us very long time: > > When I first reach http://mycompany.com, with normal configuration, we > check if user login or not and throw > RestartResponseAtInterceptPageException( IndexPage.class) > to redirect user to Login page. > > This work perfectly but the URL become unstable link like: > > http://mycompany.com/app?wicket:interface=:1 :: > > Normally user want to bookmark login page, but in this case such URL does > not work at all. > > Is there any way to fix this 'problem' ? It would be better I could redirect > to root context like > http://mycompany.com/ or http://mycompany.com/app -- Download Wicket 1.2.1 now! - http://wicketframework.org ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user