-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong context passed to team tab when navigating (latest build bug, 24295.607.3241.5057) #2638
Comments
@nbelyh - Thank you for your inquiry about your Teams app development issue! To assist you better, could you please share the Teams JS library version you are using? |
I had same issue like him, Please suggest advise |
@Nivedipa-MSFT But the thing is, for us the problem only happens with the very last teams client. |
Same here! Reproduce:
|
For me, the context is not undefined; it is defined, but it is a wrong one (and it is wrong one only in the latest build of teams, and only if you navigate to the app using deep link) |
Yes, same here. Context is not undefined but fields in the context are undefined that should be defined actually. Only occurs after using a deeplink. |
@nbelyh - We are experiencing some difficulties in reproducing this scenario. Could you please share your minimal code snippet, app manifest, and a repro video? This will help us replicate the issue on our end and, if necessary, raise a bug accordingly. |
@Nivedipa-MSFT |
Hello @Wajeed-msft and @Nivedipa-MSFT Are there any news about this issue? We are facing this issue as well and we need it solved to be able to publish our app. We have a configurable tab scoped to teams which we developed with the Teams Toolkit, when the tab is loaded from the Teams UI it works fine (first screenshot), from the app we generate a deep link to the tab and a specific sub entity, and when we open the deep link in the browser we see the described behavior (second screenshot). After opening the deep link in the browser: The deep link we generate works perfectly fine on an older version of our tab which was developed only with SPFX. |
I have created a demo APP to reproduce the bug. Please find the repository here (teams toolkit minimal template with modifications to reproduce the issue). plain javascript/html, no authentication. The package (manifest) is attached here: The video explaining the problem is here (vimeo): The code used to navigate (but actually, any navigation method fails the same way, i.e. the old
Please note: reproducible with the latest teams version, mentioned in the issue description (ending with 5507). Desktop (reproducible): You have Microsoft Teams version 24295.607.3241.5057. The problem is, after navigation the context passed to the tab is not the tab's context (i.e. context not changed). Therefore all tab/channel/site specific properties are empty. Please kindly let me know if there is something else I could do to help investigating the issue. |
@nbelyh - We have tested this on Desktop Microsoft Teams version 24345.1900.3299.7394 and were unable to reproduce the issue. It is working fine on our end. Navigation_Bug.mp4Could you please update your Teams version and check again? |
Hi @Nivedipa-MSFT , I am a colleague of @haekalarif, Is there anything we can provide to help the investigation, will sending HAR logs be helpful? If so, we would be happy to help provide the logs from the Teams tenant that has the issue. |
Hi @Nivedipa-MSFT, As I described, the issue also affects manually opening a deep link (for example, if you manually paste the deep link in the browser, or if you have it in another place like a Planner task, adaptive card outside Teams, etc). Can you validate this scenario as well now that you have a PoC app thanks to nbelyh? Thanks in advance. |
@Nivedipa-MSFT |
If you navigate to a tab using a link from one tab, the latest teams client does not give you the new context.
Teams build numbers:
Meaning,
microsoftTeams.getContext()
started returning the context from the previous tab/application.This break deep link navigation completely, as the tab being loaded gets another tab's context.
This is only happening in the very latest build of teams (see the version numbers above).
Example to be clearer:
Personal App calls
executeDeepLink(...here comes the deep link to some team tab....)
Some Teams tab:
getContext(....) ===> returns now the context for the person tab, not this team tab ?????
If you reload the teams tab, the correct (teams tab) context is passed.
The text was updated successfully, but these errors were encountered: