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

Edoardo Croci 1 Reputation point

I have a custom app, with main tab content: ''.
When I click on "go to website" it opens a chrome tab with url: '', 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.
6,630 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.
2,069 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Nivedipa-MSFT 2,031 Reputation points Microsoft Vendor

    @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:<your-app-id>

    Ref Document:

  2. Edoardo Croci 1 Reputation point

    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:<app_id>/sections/<entity_id>

    0 comments No comments