Hi,
I have one page which is mounted at several pathes with
IndexParamUrlCodingStrategy e.g. :
/pathA
/pathB
Now I want to create BookmarkablePageLinks with PageParameters and a specific
path of the page, e.g.
/pathA/id where "id" is the page parameter.
The problems is that rendering url calls
BookmarkablePageRequestTargetUrlCodingStrategy.matches
which only checks the Page class but not the mount path, so the
url is (in my case) /pathB/id which is wrong. So i tried to use the mount path
as
first parameter and the id as second parameter but this generates:
/pathB/pathA/id
If call the page /pathA/id directly in the browser everthing is okay as the
method
IRequestTargetUrlCodingStrategy.urlCodingStrategyForPath(String path)
takes care of the mount path.
So what can I do the specify the mount path + PageParameters in the
BookmarkablePageLink?
Extend BookmarkablePageLink and overide onComponentTag ?
Thanks,
Oliver