We are planning to convert some of our VF pages to Lightning apps. Some our VF pages, particularly surveys are URL parameter-driven, since we send survey links directly to users, i.e. https://[vf_instance].force.com/apex/CaseSurvey?caseid=xxxxx
Say we convert the VF page to an Lightning app, we would probably be sending the Lightning survey like this https://[vf_instance].lightning.force.com/c/CaseSurvey.app?caseid=xxxxx
Problem:
In VF page controller, PageReference.getParameters() contains the much needed caseid
However, in Lightning component controller, PageReference.getParameters() does not contain any URL parameters.
How can I get the URL parameter in Lightning app/component apex controller?
THANKS!