How to change MS Teams (desktop) "go to website" url in custom app

Edoardo Croci 1 Reputation point
2022-10-28T17:27:52.077+00:00

I have a custom app, with main tab content: 'customapp.azurewebsites.net'.
When I click on "go to website" it opens a chrome tab with url: 'customapp.azurewebsites.net', and it shows an image with this text: "Sorry, this app is only available on Microsoft Teams" and a button below it which says: "Open in teams".
Once i click that button i get redirected to my custom app main tab, is there a way to skip the intermediate window (the one with the image and the button) and get directly to my custom app main tab?

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,961 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,207 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Nivedipa-MSFT 3,011 Reputation points Microsoft Vendor
    2022-10-31T04:48:44.043+00:00

    @Edoardo Croci
    Go to website option will open URL in new browser outside of teams. You cannot open it in Teams desktop. It's by design.

    If you want to open an app inside teams then you can use deep link of an app on button click.
    You can create a deep link for the custom app after the app is listed in the Teams store.
    Please refer below format for deep link to an app:
    https://teams.microsoft.com/l/app/<your-app-id>

    Ref Document: https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/deep-links?tabs=teamsjs-v2#deep-linking-to-an-app


  2. Edoardo Croci 1 Reputation point
    2022-10-31T13:43:30.157+00:00

    I found out you can choose the URL when the "go to website" button is clicked by simply doing:
    Developer portal > app features > personal app, then you have to edit your tab or create a new one and simply add the URL that you want in the "Website URL" section.
    In my case it was: https://teams.microsoft.com/_#/apps/<app_id>/sections/<entity_id>

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.