I've Visualforce page on Lightning community portal, i need to pass querystring to this page to get data when page loads but when i try to fetch on controller it gives me


//Controller code

Querystring in the url i pass


when i print ApexPages.CurrentPage().getParameters() i see completely different url


This helped me to get the actual url and querystring

 string headerdata= ApexPages.currentPage().getHeaders().get('Referer');

Hope it helps someone

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.