Following situation:
-I have a Wicket Application(6.8.0) which runs under the context "webapp" on a Tomcat 7.0.41
-I mount a Page with two parameters (this is important) in the WicketApplication.
mountPage("/mount/$

{parameter1}

/$

{parameter2}

", MountedPage.class);
-The mounted Page(MountedPage.class) has only a simple Link
-There are two links on the HomePage to the mounted Page.
They are declared as follows:

add(new Link<Void>("link") {
@Override
public void onClick()

{
setResponsePage(MountedPage.class, linkParameters);
}

});

add(new Link<Void>("brokenLink") {
@Override
public void onClick()

{
setResponsePage(new MountedPage(linkParameters));
}

});

I deploy this Application as a war file on a Tomcat under the context "webapp".
When I call the first Link on the HomePage and then the Link on the mounted Page, everything works fine.

Sven Meier
added a comment - 21/Jun/13 13:20 As a quick fix you can pass the PageParameters to the super constructor:
public MountedPage(PageParameters parameters)
{
super(parameters);
...
}
Otherwise there is no way for Wicket to know and use them in the generation of the mounted url.
I will commit a fix that improves handling of this coding error.