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
SFDC 18SFDC 18 

URL not found

My lex component
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId">
   <lightning:button label="PDF" onclick ="{!c.handleClick}"/>
   <aura:attribute name="recordId" type="String"/> 
</aura:component>

controller:

({
	handleClick : function(component, event, helper) {
        
        var recId = component.get('v.recordId');
        var retURL = component.get('v.pdf');
        retURL = window.open("apex/TTDLetter?recordId="+recordID);
        	
	}
})

when i have clicked on the lightning button from record page I got a error 'URL doesn't exist".
Darshan Gandhi 9Darshan Gandhi 9


SFDC 18 - There could be several reasons. You can already look into solved thread.

https://success.salesforce.com/answers?id=9063A000000iiAfQAI

 

Let me know if it helped you