Hello,

Wonder how to make URLs (i.e. mount paths) case insensitive for Wicket 6? For example, make these two URLs do the same thing: localhost/AboutUs and localhost/aboutus

I understand for Wicket 1.4.x, you could achieve it in the way below:

public class DemoApplication extends WebApplication
{
    @Override
    protected IRequestCycleProcessor newRequestCycleProcessor() {
        return new WebRequestCycleProcessor() {
            @Override
            protected IRequestCodingStrategy newRequestCodingStrategy() {
WebRequestCodingStrategy.Settings strategySettings = new WebRequestCodingStrategy.Settings();
                strategySettings.setMountsCaseSensitive(false);
                return new WebRequestCodingStrategy(strategySettings);
            }
        };
    }
}

Many thanks,
Eusie

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to