Something odd with this..
I've got different schedules setup per virtual wiki.  One of the notifications it sends includes links to documents - this works fine most times, but every so often it seems to get mixed up (using getExternalURL from the document object to get the url to send).

For example, on virtual wiki "private.xwiki.host.com", the link sometimes goes to the user as "public.xwiki.host.com".

I can use string replacement to fix it up, so I can work around the link - but this raises an important question (for me anyway):

If it's getting confused at getExternalURL, is it possible that the scheduler is going to get confused about where to look for documents (so if the scheduler is setup on wiki "public", would it potentially look at "private" instead)?