Previously I used to be able to upload files and get a link to it that when I put in wiki as a reference, the file would open in MS teams. It was giving a link (https://teams.microsoft.com/l/file/.) This hyperlink would open in MS teams and was greatly convenient. Now something has changed and when I try to get a link for an uploaded file it gives me a sharepoint link (https://kochind.sharepoint.com/:b:/s/) to that file which when you click in wiki doesnt open in MS teams but rather takes you to sharepoint webpage.
Is there a way for me to get a link to the file but that link is a teams.microsoft.com/l/file so that I can open the file within MS teams? The older links to file I have in this format work, but I cant get the teams.microsoft.com/l/file link to it. Previously when you tried to get a link MS teams gave you the option of either choosing the MS teams link or the sharepoint link but now I can only get the sharepoint link which I dont want!
In my testing, still, the "Get link" function supports two types of links (Teams and SharePoint links), but only for the specific type of files (ex: Excel, Word, etc) which can be opened from Teams client.
Hope you can get Teams URL only for Office files (Excel, Word, PDF, PPTX) and when you try the "Get link" feature for image files (ex: .png), you will see the SharePoint URL alone.