Hi All, I'm having some trouble with 'redirectToInterceptPage' and would appreciate any help you can provide
I have a 'login' link on my page - PageA. My intention is that: 1. if the user clicks on the 'login' link the user will be forwarded to the Index page, which includes the standard Wicket SignInPanel (the Index page is similar to the gmail start/splash page) 2. If the user successfully authenticates, the user should be returned back to PageA- the original page. Currently: 1. the user clicks the 'login' link and is forwarded to the Index page 2. on successful authentication, the user stays on the Index page Some details: 1. PageA is a bookmarkable page with 2 page parameters. Sample URL is http://localhost:8080/PageA?id=1&authKey=f68d282f-7552-404b-b0b1-96fadc7b04dc 2. The User does not have to be authenticated to view PageA. An authenticated user will be able to see an additional panel (I haven't got to this bit yet) 3. My login link has the standard onClick function with redirectToInterceptPage(new Index()); My debugging shows: 1. User sign-in process works - i.e. the user is successfully authenticated (using Spring-Security) 2. The continueToOriginalDestination() method returns true 3. getURL() called from the onClick method of the 'login' link returns ?wicket:interface=:4:header:signin::ILinkListener:: and not the bookmarkable URL as I expected I have tried throwing a RestartResponseAtInterceptPageException but this does not work. My feeling is that the correct URL is not being saved in the PageMap therefore the application is not able to return the user to the target page. Has anyone experienced this problem? Any idea what the fix is? Any suggestions greatly appreciated. Thanks, Nim -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/problems-with-redirectToInterceptPage-tp2892437p2892437.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org