JournalArticleAssetRenderer.getURLViewInContext searches for article in a limited way, moreover it does not check if an URL goes to a Web Content Display for which the user has permission to view the article.
There are two issues here:
- In some constellations, getURLViewINContext does not find a Web Content Display where the article is shown
- If it finds it does not check if user has permission to view the content via the returned URL
For detailed description see the linked