[SalesForce] knowledge article url in community

In a community I want to access to a knowledge article by a link. I have something like this :

href="{!'/c/article/' + currentFile.urlName}"

with currentFile.urlName that is the KnowledgeArticleVersion.UrlName.

Concretely, the url look like this :

https://my-org-salesforce.cs88.force.com/c/article/test-lightning

But when I click it I got the error

URL No Longer Exists

Best Answer

In Napili URL should be:

https://my-org-salesforce.cs88.force.com/s/article/test-lightning

You can verify that it from community builder.

It's constructed as: <Community base URL>+'/s/'+'/article/'+<articleURLname>

enter image description here

Related Topic