The long long wait is over...
Have you ever had a CRM installation that can be accessed using different URLs, e.g. one to be used inside a corporate network, and one to be used for external access?
Then you have realized that the
context.getServerUrl method returns the URL that was assigned the server during the installation of CRM, and not the URL currently used to access CRM.
Why is that a problem?
Now, at last, in Microsoft Dynamics CRM Software Development Kit version 5.0.13 the
context.getClientUrl method is introduced, which returns the base URL currently used by the user to access the CRM application.
getServerUrl method is still there, but deprecated and should not be used in the future.
Documentation can be found here.