Route Link
forceCommunity:routeLink
Sets an HTML anchor tag with an href attribute that’s automatically generated from the provided record ID. Use forceCommunity:routeLink to improve SEO link equity in template-based communities.
For Use In
Experience Builder Sites
Because the href attribute is automatically generated from the provided record ID, forceCommunity:routeLink is only suitable for creating internal links to recordId-based pages in your Experience Builder site, such as the Article Detail or the Case Detail pages.
Internal links help establish an SEO-friendly site hierarchy and spread link equity (or link juice) to your Experience Builder site’s pages.
Here's an example of a forceCommunity:routeLink component.
To create the link, the client-side controller sets the record ID on the routeInput attribute during initialization. Clicking the link enables you to navigate to the record page.
The previous example renders the following anchor tag: