Hi devs,
Following Anca's comments on
http://jira.xwiki.org/browse/XWIKI-6058 I
realized that the current document and the current wiki (database) are
completely independent: you can have "someWiki" as the current wiki
(context.setDatabase("someWiki")) and otherWiki:Space.Page as the
current document (document.setAsContextDoc(context)). This means that
it's not enough to set the current document if you want relative
references to be resolved relative to that document. You also need to
set the current wiki,
Is this the desired behaviour? Should setAsContextDoc also set the
current wiki? WDYT?
Thanks,
Marius