function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vivek ChaudhariVivek Chaudhari 

How to get URL of Visual Force page without query string?

hitesh90hitesh90
Hello Vivek,

You can use following methods to get URL.
String hostVal  = ApexPages.currentPage().getHeaders().get('Host');
String urlVal = Apexpages.currentPage().getUrl();
String fullUrl = hostVal + urlVal;
Thank You,
Hitesh Patel
Email :- hiteshpatel.aspl@gmail.com
http://mrjavascript.blogspot.in/