Open file from SPFx Teams tab in New Teams

Copper Contributor

Is there a way to open a file from an SPFx Teams Tab app in New Teams? My implementation in Classic Teams was working, which was taken from here: How to open a file in the Custom spfx teams tab in MS teams - Microsoft Community Hub

 

private string GetFileViewerURL(string actionData_URL, string prefix)
{
    return $"https://teams.microsoft.com/_#/{prefix}/viewer/teams/" + actionData_URL?.Replace("/", "~2F");
}

 

2 Replies
Hello @pheidler - Thanks for raising your query.
We will look into it and let you know the updates.
Apologies for the delay, could you please raise this issue on https://github.com/SharePoint/sp-dev-docs/issues. Respective team will look into this.