Loading

Create a Persistent Static URL for Salesforce Lightning Knowledge Articles

Publiseringsdato: May 13, 2026
Beskrivelse

Why Lightning Knowledge Article URLs Change

In Salesforce Lightning Experience, Knowledge article URLs contain the Knowledge Article Version ID (beginning with ka). Each time an article's status changes — for example, when it is set to draft and then re-published — the Version ID in the URL changes. This occurs regardless of whether Flag as new version is selected during publishing.
Users navigating to a previously saved article URL may encounter the following error:

Looks like there's a problem. We couldn't find the record you're trying to access. It may have been deleted by another user, or there may have been a system error.

How Classic Knowledge Article URLs Differ

In Salesforce Classic, the URL contains the Knowledge Article ID (beginning with kA). The Knowledge Article ID remains constant regardless of version changes, making Classic URLs stable and persistent.
This difference is a design decision based on how articles are returned in Lightning Experience and is working as expected. This behavior is not a bug.

Workaround: Create a Persistent Lightning Knowledge URL

As a workaround, create a custom text formula field and add it to the Knowledge Article page layout. This field uses the standard URL Name field to construct a static Lightning URL that does not change between versions.

Reference:

KnowledgeArticle | SOAP API Developer Guide 
Salesforce Knowledge SOAP API

If you would like to see this functionality changed with a future release please consider either creating or promoting an existing Idea on the IdeaExchange so that we may see static knowledge article URL's added to Lightning Experience with a future release.

Løsning

The formula below constructs a persistent URL for a Knowledge article using the article's URL Name field, which does not change between versions.
Persistent Lightning Knowledge Article URL format:
https://{domain.lightning.salesforce.com}/lightning/articles/{KnowledgeObjectName}/{urlName}?{languageIsoCode}

  • {domain.lightning.salesforce.com} — The first part of your org's unique Lightning URL (e.g., jflightning-dev-ed.lightning.force.com)
  • {KnowledgeObjectName} — The Object Name field value from your Knowledge object's setup page (found in Setup > Object Manager)
  • {urlName} — The value in the standard article field URL Name, which is dynamically populated
  • {languageIsoCode} — Required only for multi-language Knowledge bases; omit for single-language orgs

Formula Field — Single Language Knowledge Base

Build a Formula Field with Formula Return Type: Text using:
"" & HYPERLINK("/lightning/articles/Knowledge/" & UrlName, "Right click and copy link to share this Article's URL")

Formula Field — Multi-Language Knowledge Base

"" & HYPERLINK("/lightning/articles/Knowledge/" & UrlName & "?language=" & TEXT(Language), "Right click and copy link to share this Article's URL")
Note: Replace Knowledge in the formula with your org's unique Object Name value from the Knowledge object setup.

 

 
Knowledge-artikkelnummer

000384278

 
Laster
Salesforce Help | Article