Im trying to use mountPage in wicket to mount "/" url as my MainPage url.
My WebApplication looks like this now:
public class WicketApplication extends WebApplication
{
@Override
public Class<HomePage> getHomePage()
{
return HomePage.class;
}
@Override
public void init()
{
super.init();
mountPages();
}
private void mountPages()
{
mountPage( "/home", HomePage.class );
mountPage( "/about", AboutCompany.class );
mountPage( "/prices", Prices.class );
mountPage( "/gallery", Gallery.class );
mountPage( "/contact", Contact.class );
mountPage( "/offer", Offer.class );
}
}
and actually works great, but I'd like to change "/home" into "/", yet it messes a lot with CSS for example, not transfering it, but whole HomePage instead. How can I make this work the way I want to?