I need to get the url of a JournalArticle having its id. Right now I get the JournalArticle object, but I can not build your url.
<#assign journalarticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")/>
<#assign article = journalarticleLocalService.getArticle(themeDisplay.getScopeGroupId() , recetarelacionada.getData())/>
<#assign id = article.id?number?long >
<#assign artic =journalarticleLocalService.getJournalArticle(id)/>
<#assign pathArticle = artic.getUrlTitle() >
The variable pathArticle must now be equal to the url of the article, but it is not like that. I just received a part of the friendly url