-
Notifications
You must be signed in to change notification settings - Fork 187
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
Teams context on iOS has invalid teamsSiteUrl with 2024-MarT2 update #2266
Comments
@nbelyh - Thanks for raising your issue. We will check this at our end and will update you accordingly. |
@nbelyh - Just to be sure, are you testing using @microsoft/teams-js": "^1.13.1 or Teams JSv2? In Teams JSv2 it is referred as |
@Prasad-MSFT As a temporary workaround, we used this: if (context.teamSiteUrl.endsWith('.aspx')) {
const origin = UrlService.getOrigin(siteUrl);
const teamSite = context.channelRelativeUrl.split('/').slice(0, 3).join('/');
siteUrl = `${origin}${teamSite}`
} |
@nbelyh - We have raised a bug for the same. We will inform you once we get any further update from engineering team. Thanks! |
@Prasad-MSFT I have a few questions regarding this issue:
Thank you for your support. |
@otahi - Apologies. Engineering team is currently working on the fix, however there is no ETA to share at the moment. We will inform you once we have any update. Thanks! |
@Prasad-MSFT Thank you for the reply. I appreciate your efforts and will await further updates. |
The problem started with Teams 2024 March T2 update.
On iOS, now it turned out to be NOT THE TEAMS SITE URL passed in context, but a URL to a web page on the root site.
Was (correct, also correct on all other Teams client versions, i.e. Android/Desktop/Web):
https://something.sharepoint.com/sites/TeamSite
Now (iOS, after March 2024 update):
https://something.sharepoint.com/_layout/15/sharepoint.aspx
This is causing a problem in our application, because it assumes that
teamsSiteUrl
contains a URL of teams site, not a page.Would appreciate some ideas for workarounds (how do I get the team site).
In the documentation, it is also stated that the old way is correct:
https://learn.microsoft.com/en-us/javascript/api/@microsoft/teams-js/microsoftteams.context?view=msteams-client-js-1.13.1#@microsoft-teams-js-microsoftteams-context-teamsiteurl
This property should not be some a page on a root site, this should be a team site url.
The text was updated successfully, but these errors were encountered: