Hello,

I'm new to Wicket and have to change an existing Wicket 1.4.5 application.

A requirement is that some pages must have an url that starts with
/restricted/ after the context root. For example
https://www.domain.com/context-root/restricted/easy-to-remember

This is done by mounting bookmarkable pages to urls. We do this with:
org.apache.wicket.protocol.http.WebApplication.mountBookmarkablePage(String,
Class<T>);
we call application.mountBookmarkablePage("/restricted/easy-to-remember",
SomePage.class);

This works, but there is one problem:
if the onclick event on a component on the page is fired, then the url gets
something like: https://www.domain.com/context-root/?wicket:interface=:5:1:
::
instead of
https://www.domain.com/context-root/restricted/another-easy-to-remember-path/?wicket:interface=:5:1:
::

How can I fix this problem?

Thanks,

Wazzaly

Reply via email to