I've created one project having details of products for Microsoft Teams it consists chat bot using adaptive cards it is displaying data with navigation URL but unable to open that URL in teams but opening in browser
Found solution it can be done this way
string encodedContext = HttpUtility.UrlEncode("{\"subEntityId\":}");
URL: https://teams.microsoft.com/l/entity/{app_id}/{entity_id}?label=&context=encodedContext
same has been shared using JS as well https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/deep-links