Attaching a link into MS Teams

Hi ya,

quick question,

some users would like to add links into MS Teams chats to files that are stored in M-Files. I know you can get the hyperlink and paste it in.  like below

but I noticed that when you chat after the link has been posted the Desktop link is not clickable any more.  Classic Web still works, but we don't want users using this option.

If you try and edit the link it does not work again, unless you copy and paste the link into M-Files.

Is there a way to make the link still clickable when you paste it in Teams, or anyone got any other ways of working.