Hello, I'm Jen, I'm happy to help you today.
Here's a reference answer from my colleague from the community as well:
While there's no direct way to copy the link in the format you described within the new Teams desktop client, here are a few workarounds you can use:
- Use the web version of Teams:
Access Teams through your web browser (https://teams.microsoft.com).
Navigate to the file, click the three dots, and choose "Copy link."
The web version typically generates a shorter link with just the file name.
- Copy link from SharePoint:
In the Teams desktop client, click "Open in SharePoint" next to the file.
Copy the link from the SharePoint site's address bar. It's usually a shorter link.
- Manually edit the link:
Copy the full path link from Teams.
Paste it into a text editor.
Remove unnecessary parts of the URL, leaving only the essential elements (domain, team name, file name).
This creates a shorter link, but exercise caution to ensure it remains functional.
or
Move files to SharePoint
Navigate to the file, click the three dots, and choose "Copy link." The web version typically generates a shorter link with just the file name. 2. Copy link from SharePoint: In the Teams desktop client, click "Open in SharePoint" next to the file. Copy the link from the SharePoint site's address bar.
https://learn.microsoft.com/en-us/microsoft-365/admin/setup/files-to-sharepoint?view=o365-worldwide
Let us know how it goes, we're here to help you further if needed.
Jen A.