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? May 17 '18 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
    May 17 '18 at 8:08
  • Which community template you are using?
    – Ayub
    May 17 '18 at 8:49
  • I use the napili template
    – dou
    May 17 '18 at 8:50
  • url should be in a format like my-org-salesforce.cs88.force.com/articles/[articleType]/…
    – Reshma
    May 17 '18 at 8:51
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.