we need to open (preview) files in communities by clicking on link. After searching I found
lightning:openFiles event, but in documentation is written that it is no longer recommended and it should be replaced with
lightning navigation service. But when I look into the documentation, I found that the
filePreview page is not available in community.
So does someone an idea how we can achieve this? Can we use
lightning:openFiles event in community since there is no alternative? Or it will be deprecated and removed in future?
Thanks for any advice.
EDIT: We need open preview directly after click on link, without next click or doing any action.