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
akshay desai 9akshay desai 9 

How to navigate to home page of community in LWC

My page settings are like like thisMy page settings are like like thisUser-added image

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
Best Answer chosen by akshay desai 9
RituSharmaRituSharma
You may use below code:

//Navigate to home page
    navigateToHomePage() {
        this[NavigationMixin.Navigate]({
            type: 'standard__namedPage',
            attributes: {
                pageName: 'home'
            },
        });
    }