0

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

7
  • what is url is printing when you click on the url? Commented May 17, 2018 at 8:05
  • "URL No Longer Exists" as I said in my question... I got this error message, and the URL is the one I wrote in the question. Maybe the url in the code is wrong, if so what should I put ?
    – dou
    Commented May 17, 2018 at 8:08
  • Which community template you are using?
    – Ayub
    Commented May 17, 2018 at 8:49
  • I use the napili template
    – dou
    Commented May 17, 2018 at 8:50
  • url should be in a format like my-org-salesforce.cs88.force.com/articles/[articleType]/…
    – Reshma
    Commented May 17, 2018 at 8:51

1 Answer 1

1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .