Blogs

Lightning-formatted-url

Nirav Asodariya 02/01/2026   LWC

The purpose of Lightning-formatted-url is to display URLs in a clean, consistent, and clickable format within Salesforce Lightning Web Components. It ensures links are rendered as proper hyperlinks while automatically handling absolute and relative URLs, protocol formatting, and accessibility standards. This component helps developers avoid manual anchor tag handling and ensures reliable navigation behavior across Lightning Experience and Salesforce Mobile.