I am working on Salesforce community. where I am getting one issue. Here is my issue.
I have configured 2 communities
- Lightning community
- Visualforce + tab community
I have one common visual force page for both community which contains one submit button. When user click on that submit button I have to redirect user to some page.
- If Lightning community user click on that submit button I want to redirect to the lightning component.
- If Visualforce + Tab community user click on that submit button I want to redirect to Apex page.
Note: I have common Apex controller to prepare URL for the submit button.
Issue: How I can identify user have clicked submit button from which community(Lightning community or Visuforce community)