Double encoding issue when sharing web apps to Teams

Susac, Karlo 41 Reputation points
2023-01-17T12:50:05.49+00:00

This is the request we're using: [https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/share-to-teams-from-web-apps

We were using this request to share courses from our application in the Microsoft Teams. We're also required to encode part of our URL which started causing problems about a month ago.

At the beginning of December our URLs stopped working, what seems to cause the issue is the encoded part of the URL. We send URL to MS Graph and the text that is returned is valid but the href attribute is encoded twice and our URL leads to 404 and is not valid anymore.

Example would look something like this <a href=base-url(double-encoded-url)>https://base-url(encoded-url-part)</a>
Is there anything we could do to avoid the behavior from the MS Graph?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,582 questions
0 comments No comments
{count} votes