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
arjun mohanarjun mohan 

force:navigateToURL is throwing error

Hi all 

i am getting below error when i navigate from my component to custom VF page

"The name can only contain underscores and alphanumeric characters. It must begin with a letter and be unique, and must not include spaces, end with an underscore, or contain two consecutive underscores."

Below is My Code .

var evt=$A.get("e.force:navigateToURL");
        
        var sUrl1='';
        if(component.get("v.ConfigIdList").length >1)
        {
            debugger;
            sUrl1=component.get("v.OrgUrl")+'/apex/testpage';
        }
  
        evt.setParams({"url":sUrl1});
        

        
        evt.fire();
       

    
        console.log('IN URL Testing');