Share
  • 0
  • 0

Salesforce Lightning Communities (LCC) is a social enterprise software that helps companies of all sizes build relationships, share information and ideas. With LCC you can create a destination for the people who matter most to your business, such as customers, partners and employees.

Lightning Communities are single-page applications, SPAs, which is the same framework used by a number of websites where the content changes based on user interaction, but the URL doesn’t – e.g. online mailboxes and social networking websites.

However, Salesforce’s documentation around best practices for Lightning Communities can be… Confusing.

In a 2018 article, co-authored by David Green, the VP of Product Management at Salesforce, they recommend using the force:navigateToURL function in order to generate properly formed <a href> links in your custom Lightning components.

/2018/01/advanced-seo-lightning-communities

But as detailed in the LIghtning Aura Components development guide:

The standard__webPage type replaces the force:navigateToURL event.

This is also echoed in the general developer component library reference guide, where it outlines that lightning:navigate should be used in conjunction with the standard_webPage type in Lightning Communities, Lightning Experience, and the Salesforce App.

So which one should we use? And does it matter for SEO?

Depending on the environment in which you’re working in, this answer can vary.

You need to work with your integrator on a viable, working solution for both users and search engines.

If you’re running a JS based framework, such as Lightning Communities, which is an SPA, you will need to configure your crawler for JavaScript based websites and potentially partition the website into sections with the virtual robots.txt file.

JavaScript crawling is slower, and much more intensive than regular crawling and demands more resources from the website – so to crawl responsible and not cause issues for users, especially on large catalog websites is important.

 

Share
  • 0
  • 0