delete version number in url

前端 未结 7 2044
广开言路
广开言路 2020-11-27 05:52

How can I delete or hide the version number in the URL introduced in Wicket 1.5?

Mounting a page doesn\'t help.

http://localhost/MyPage/SubPage?0
         


        
7条回答
  •  难免孤独
    2020-11-27 06:23

    For me the solution with setStatelessHint didn't work. The following did work:

    class MyApplication extends WebApplication {
        @Override protected void init() {
            getRequestCycleSettings().setRenderStrategy(
                IRequestCycleSettings.RenderStrategy.ONE_PASS_RENDER); 
            ....
        }
    }
    

提交回复
热议问题