You need to sign in to do that
Don't have an account?
Jfost
How to get URL Parameters into Apex Controller from Visualforce Page embedded in Community Page.
The following works in desktop, but not mobile:
System.debug(ApexPages.currentPage().getHeaders().get('referer'));
'referer' is not available on when using a mobile device...
I know I'm on a mobile device if the following is true:
Boolean isMobile = UserInfo.getUiTheme() == 'Theme4t';
How do I get the URL parameters in my Apex Class when the VF Page loads in Community Page... ?
Thank you!
What is the mobile device you are using? I have come across a similar scenario in the past. Check https://salesforce.stackexchange.com/questions/327440/browser-not-detecting-ipad-and-showing-as-desktop/327467#327467
If this information helps, please mark the answer best. Thank you
You need to do like that pass the id from vf page to url and get in apex class .
public String addTo{get;set;}
addTo= Apexpages.currentPage().getParameters().get('addTo');
if it is work for please mark as the best answer.