OfficeDev / microsoft-teams-library-js

JavaScript library for use by Microsoft Teams apps
https://docs.microsoft.com/microsoftteams/platform/
Other
426 stars 194 forks source link

Deeplink webUrl from Graph API doesn't work as expected in Teams V2. #2485

Open hemantkhapke23 opened 3 weeks ago

hemantkhapke23 commented 3 weeks ago

Hello, We have developed a application that can open link and redirect to the chat tab of the ongoing meeting in MS Teams native interface. I'm using the function app.openLink . To achieve this, I use the GraphAPI that returns the webUrl. for example, "https://teams.microsoft.com/l/meetup-join/19%3ameeting_NTk4ZmE5Y2ItNzc3YS00YTk4LWJlNDgtYjI3ZGM4YmJkMGM4%40thread.v2/0?context=%7b%22Tid%22%3a%225411b174-6dbb-4f8e-ac79-aeebd613bb8c%22%2c%22Oid%22%3a%221dadaf9f-3de6-4ced-8785-c30a6527118f%22%7d" and we are replacing "meetup-join" with "chat".

So my problem is that this redirection by cliking on this link (by using app.openLink) works good in Teams Classic but not in Teams V2 version. In Teams V2, it redirects me to the side panel in the meeting interface and chat gets opened in the side panel and the application which was previously opened in the side panel gets replaced with chat. In classic teams after redirection chat tab was opening in teams native interface. Also I'm getting this in the console after making the deep link call 'either targetOrigin or target is invalid'.

microsoft-github-policy-service[bot] commented 3 weeks ago

Hi hemantkhapke23! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

Prasad-MSFT commented 3 weeks ago

@hemantkhapke23, Thanks for raising your issue. We will check this at our end and will update you accordingly.

Prasad-MSFT commented 3 weeks ago

Hi @hemantkhapke23, we are also able to repro the issue. While clicking on this link (https://teams.microsoft.com/l/chat/19%3Ameeting_ZTxxOGZkxxxxRkYS00ZTk2LWFixxxxjZWYxxmE0YzI3%40thread.v2/0?tenantId=xxxxx7ff-f40f-4axx-b3xx-19xxxf467xxx) (by using app.openLink) in Teams V2, it redirects us to the side panel in the active meeting interface and chat gets opened in the side panel and the application which was previously opened in the side panel gets replaced with chat.

We are checking this with engineering team whether this is by design behaviour or not. After getting confirmation we will update you in this thread. Thanks!

hemantkhapke23 commented 3 weeks ago

Thanks for update @Prasad-MSFT

hemantkhapke23 commented 2 weeks ago

Hi @Prasad-MSFT , Any update from engineering team on this?

Prasad-MSFT commented 1 week ago

Apologies. We haven't got any update from engineering team about this issue yest. We will update this thread once we hear from them. Thanks!

hemantkhapke23 commented 2 days ago

Hi @Prasad-MSFT, Any progress/ updates on this issue?