You need to sign in to do that
Don't have an account?

How to navigate to home page of community in LWC
My page settings are like like thisMy page settings are like like this
and the code i am using for navigation is
i am able to navigate to other pages but not in home page
and the code i am using for navigation is
navigateCase() { console.log('item value',this.item); this.item = false; this.isshow=false; this[NavigationMixin.Navigate]({ type: 'comm__namedPage', attributes: { pageName: 'casetab' }, }); } navigateHome() { //this.isOpenDashboard = true; this[NavigationMixin.Navigate]({ type: 'comm__namedPage', attributes: { pageName: 's' }, }); }
i am able to navigate to other pages but not in home page
//Navigate to home page
navigateToHomePage() {
this[NavigationMixin.Navigate]({
type: 'standard__namedPage',
attributes: {
pageName: 'home'
},
});
}