I tried to do use indexOf instead of lastIndexOf on several places in
the source code (see the attached patch) and the Web/Doc names seems
to be resolved resolved correctly, the only remaining problem is with
rendering of links which requires you to always specify Web when
writing a link to this kind of dotted document name. However it is an
acceptable compromise for now, I would say. What do you think?
Jiri.
On Tue, 28 Jun 2005 08:47:01 +0200 (CEST), you wrote:
Hi,
for some types of documents published on XWiki we would like to use
naming convention where there is a major version included in a name of
the document e.g. 'SomeSpace.Document-0.1'. The problem is that the
XWiki then resolves it like this 'SomeSpace.Document-0/1' instead of
expected 'SomeSpace/Document-0.1'.
I would like to ask whether there is a specific reason why name of
Web(Space) is substringed from the beginning to the last position of
'.' and not the first position of '.'?
Thank you,
Jiri.