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
Ranjith DevRanjith Dev 

lightning application is not working in Community

Hi team,

I have shown the record information through RecordId, Passing to the lightning application. It is working in salesforce internally and shown the information. I have dragged that lightning application into Community it does not work for me.

I thought about the base url issue. how to resolve this scenario.

Thank you.
SwethaSwetha (Salesforce Developers) 
HI Ranjith,
What is the error in the case of the lightning app on the community?Does the guest user have access to the object's record used in the Lightning app?Thanks
Ranjith DevRanjith Dev
Hi Swetha.

Thank you for responding to the question.

error : invalidPage.

It is a LWC compoenent. accessing that LWC through Lightning app. when i place the app in to community and click on Print record info button, it is not showing the information.

template:
            <lightning-button label="Print record info" onclick={navigateToWebPage}></lightning-button>
js:
    navigateToWebPage() {
        this[NavigationMixin.Navigate]({
            "type": "standard__webPage",
            "attributes": {
                "url": '/c/testapp.app?recordId='+this.recordID+''
            }
        });
    }

Yes the user has permission on that object.
Ranjith DevRanjith Dev
   JS changes: url

"url" : '/c/testapp.app?recordId='+this.recordId