The code is following :

WebApplication :
mountBookmarkablePage("/TestPage" , TestPage.class);

TestPage.html :
url = <span wicket:id="url"></span>

TestPage.java :
final String url = RequestUtils.toAbsolutePath("");
add(new Label("url" , Model.of(url)));

If I open
http://foobar:8080/quickstart/app/TestPage
it shows  http://foobar:8080/quickstart/app/TestPage  , correct

if I open http://foobar:8080/quickstart/app/TestPage/a/b/
it shows : http://foobar:8080/quickstart/app/TestPage/a/b/ , correct

BUT ,
if I open http://foobar:8080/quickstart/app/TestPage/a/b
it shows : http://foobar:8080/quickstart/app/TestPage/a , WRONG

Reply via email to