Skip to main content
Navigate to another LWC component in the sites page

I have tried below but it's not working

import { LightningElement,track,wire} from 'lwc';

import { NavigationMixin } from 'lightning/navigation'; 

export default class Request_GeneralInfo_lwc  extends NavigationMixin(LightningElement) {

// button click 

ContinueReview(event){

this[NavigationMixin.Navigate]({

            type: 'comm__namedPage',

            attributes: {

                pageName: 'c__request_Review_LWC'

            },

            state: {

                'category': 'param1value'

               }

        });

}

In this scenario, I have to navigate request_Review_LWC lwc component in the sites page
6 respostas
  1. 8 de abr. de 2020, 09:16

    Hi Raheem,

    Might be that ltng:outApp isrestricting your navigation.

    You would need to debug it propely, firstly try to check if ContinueReview() method was called and navigated to your Aura cmp as expected, then dive further to check the other LWC.

0/9000