标签:http ext turn dcom ret url write for ges
046_Get URL
原文地址:http://www.cnblogs.com/bandariFang/p/7978100.html
String baseURL = URL.getSalesforceBaseUrl().toExternalForm(); // it will return: < https://cs14.salesforce.com >
String PageURL = ApexPages.currentPage().getUrl(); // it will return: < /apex/myVFpage?id=906F00000008w9wIAA >
So to get your whole exact URL you can write:
String wholeURL = baseURL+PageURL; // it will return: < https://cs14.salesforce.com/apex/myVFpage?id=906F00000008w9wIAA >