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
noor Zabinoor Zabi 

I want to navigate pages in salesforce community wit lightning component/

Hello, 
I am not able to navigate a page in community via lightning components.
In salesforce community pages name is Signup and Login
One components name: - SignupPage.cmp
Two components name: -  LoginPage.cmp


SignupPage.cmp:
<aura:component implements="force:appHostable,lightning:isUrlAddressable, flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" 
                access="global" >
    <aura:attribute name="signObj" type="String" default="{'sobjecttypr':'Lead'}"/>
    <aura:attribute name="Name" type="String" default="" />
<lightning:button label="Login" variant="brand-outline" class="slds-m-top_small" onclick="{!c.dologin}"></lightning:button>

</aura:component>

Controller: - 
dologin : function(component, event, helper) {
         
        let navLogins = component.find("navLogins");
        
        let pageReferences = {
            
                type: "comm__namedPage",
                attributes: {
                    name: "Login"
    
            
        }};
         navLogins.navigate(pageReferences);
    
}
            I'm getting invalid page in salesforce community.
User-added image
ShivankurShivankur (Salesforce Developers) 
Hi Noor,

It seems you are at Error page configured for your community.

You will need to configure to show this component on login page for your community.

Please follow below help documentation to check and follow the steps:
https://help.salesforce.com/articleView?id=networks_custom_login_self_reg_lightning.htm&type=0

Hope above information helps. Please mark as Best Answer so that it can help others in future.

Thanks.