I am developing an XPages workflow application which needs to send email notifications with a clickable URL link to the current document. The application may be run on a Notes client or on a Web browser. For the URL link to work, it must contain the name of the server along with its top level domain name. Our Web server is called SAUSSW.org. When the document is created on a Web browser, context.getUrl().getHost() returns "saussw.org," which is what is needed.
In the Notes client, however, this function returns "127.0.0.1" the IP address of the local host.
Using @Name("[CN]",@Subset(@DbName(),1)) returns "SAUSSW" without the '.org."