Yeah I think you are missing something. Bookmarkable page links with query parameters behave differently for the application home page.
For example, for any random bookmarkable page mounted to /stories, with a parameter 'page' and value '1', the url is displayed as /stories/page/1. This can be used in conjunction with the crypted url strategy with no problems, nothing will be encrypted and the url is bookmarkable. If you mount the designated application home page to /stories however, the url is displayed as /stories/?page=1, which unfortunately does get encrypted. So i suppose it would be possible to limit the crypted url strategy to everything but the home page, but as I mentioned an easier solution was to just set the responsePage of the application home page to another bookmarkable page. On Wed, Jul 28, 2010 at 3:40 PM, avrahamr [via Apache Wicket] <[email protected]> wrote: > So there is were I don't follow. > You use crypted url strategy in order to have non bookmarkable links. > Now you want the homemage to have bookmarkable links. > So why not to stop using crypted url strategy for the homepage, you can use > it only for the pages you want non bookmarkable URLs. > Am I missing something? > Also, for the Wicket experts out there, can we do something like this on the > Application? > mount(new QueryStringUrlCodingStrategy("/", HomePage.class)); > On Wed, Jul 28, 2010 at 2:18 PM, fatefree [via Apache Wicket] <[hidden > email]> wrote: >> >> I use a crypted url strategy for security on non bookmarkable page links. >> If you have a standard bookmarkable page, wicket will generate a REST style >> urls like /page/id/5, which will not be encrypted. However there seems to be >> an issue where if you try to mount the home page, it is generated as >> /page?id=1, which then gets encrypted. >> >> However instead of using apache mod rewrite, I found that if you set the >> index page to forward the request to another page using >> setResponsePage(StoriesPage.class), and do not redirect, the issue seems to >> be resolved. >> >> ________________________________ >> View message @ >> http://apache-wicket.1842946.n4.nabble.com/Using-Apache-mod-rewrite-to-fix-home-page-parameter-problem-tp2303737p2304786.html >> To start a new topic under Wicket - User, email [hidden email] >> To unsubscribe from Wicket - User, click here. > > > > -- > []'s > Avraham Rosenzweig > [hidden email] > > > ________________________________ > View message @ > http://apache-wicket.1842946.n4.nabble.com/Using-Apache-mod-rewrite-to-fix-home-page-parameter-problem-tp2303737p2305504.html > To unsubscribe from Re: Using Apache mod rewrite to fix home page parameter > problem, click here. > -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Using-Apache-mod-rewrite-to-fix-home-page-parameter-problem-tp2303737p2305560.html Sent from the Wicket - User mailing list archive at Nabble.com.
