Microsoft Teams deep links without client selection
Microsoft Teams lets you create deep links to various elements like chats, channels, conversations or apps. Usually when clicking such a link the user is first asked to choose wether to proceed in the browser or open the link in the Microsoft Teams desktop app. While this makes sense in most sharing scenarios there are situtaions where you might want to force either of these two options as the person sharing the link.
To force the Microsoft Teams app to open a link you can replace the https:// with the msteams:// protocol.
To skip the client selection screen and navigate directly to the desired resource inside the browser you can append &webjoin=true to the deep link.
The latter is not documented as far as I can tell. But it can be useful e.g. when building integration tests for your Microsoft Teams app with tools like Playwright or Cypress.
Originally published at https://medienstudio.net on July 17, 2024.