I have two Visualforce pages displayed as PDF in a Lightning component which is eventually retrieved as a Site. However, it requires the authentication when external users try to access the VF page. Visualforce pages are already enabled for Guest User profile, however still we are prompted to enter login details when user try to access it.
Below is the existing technical background,
- Lightning button is available in the Lightning component,
<lightning:button label="Print" onclick="{!c.printSiteReg}"></lightning:button>
URL of the VF page is called in the controller method,
var objId = component.get("v.insertedSite.Id"); var url = 'https://firstsolar--servicecld-- c.cs47.visual.force.com/apex/SiteRegistrationPDF?id='+objId; window.open(url);Access enabled for VF pages in guest user's profile.
This is a major burden for our process as Site is created for external users, whom they they are not users in our orgs.
Any idea on what is wrong or missing here?
Your comments are greatly appreciated. Thanks...!