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
Ramesh DRamesh D 

Visualforce page on lighting community portal

I've Visualforce page on lighting 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 null
//Controller code
ApexPages.CurrentPage().getParameters().get('feeType')

Querystring in the url i pass
http://mysinstance/my-dashboard?feeType=xx_fee&visaID=xxx0BalG

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

/apex/VP_PaymentForm?clc=0&isdtp=p1&nonce
Best Answer chosen by Ramesh D
NagendraNagendra (Salesforce Developers) 
Hi Ramesh,

Please try this.
string headerdata= ApexPages.currentPage().getHeaders().get('Referer');
Hope this helps.

Kindly mark this as solved if it's resolved.

Thanks,
Nagendra
 

All Answers

NagendraNagendra (Salesforce Developers) 
Hi Ramesh,

Please try this.
string headerdata= ApexPages.currentPage().getHeaders().get('Referer');
Hope this helps.

Kindly mark this as solved if it's resolved.

Thanks,
Nagendra
 
This was selected as the best answer
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Ramesh,
string headerdata= ApexPages.currentPage().getHeaders().get('Referer');
please refer the below link for reference.
Hope it helps.

Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.

Thanks
Rahul Kumar