Double encoding issue when sharing web apps to Teams
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?