I am developing a website about artists and I would like to have clean URLs like this:
http://www.example.com/artist/artistName
where artistName
is the value entered in CMS. Currently I have URLs with this structure:
http://www.example.com/artist?0&name=artistName
This is what I did:
Added mount(new MountedMapper("/artist", ArtistPage.class));
to web app's init()
method and added BookmarkablePageLink
:
BookmarkablePageLink link = new BookmarkablePageLink("link", ArtistPage.class, params);
How to make nice and clean URLs like in example at the very top of my post?