Forum Discussion

Pradeep1090's avatar
Pradeep1090
Copper Contributor
Sep 16, 2024

Share button on Meeting Side Panel is not sharing the CURRENT PAGE to the stage

I am using teams-js sdk version 2.9.0. I have a web app which can be added to meetings on teams.

 

When a user adds my app to the meeting, the app will show a menu of items (landing page for meeting) on the meeting side panel. Once the user selects an item from the list, user will be redirected to item details page (separate page from landing page). Now., If the user clicks on share button, the stage will show landing page (items list page) instead of the item details page which is the current page of the side panel!!

 

Sample Reproducing Scenario:

Create a web app which has 2 pages. One page should show list of items (PageA). Other page(PageB) should show item details on click on an item from the PageA.

Create a teams app for your website with meetingStage and meetingSidePanel context enabled in config and.

 

1. Create a Teams Meeting

2. Load the app you created to the meeting.

3. It will show a list of items (PageA). Select an item.

4.You will be redirected to item details page (PageB) on side panel itself.

5.Click on Share button.

6.Stage will load the landing page (PageA-list of items) again instead of the current page (PageB) on side panel.

 

I am expecting the current state of the side panel to be shared to stage on click of share.

Can anyone please help on this?

@prasad_das-MSFT

 

      • Sayali-MSFT's avatar
        Sayali-MSFT
        Icon for Microsoft rankMicrosoft

        Pradeep1090- When the share button is clicked, the landing page (PageA) is being shared on the stage instead of the current page (PageB), which is the item details page. The default behavior often shares the initially loaded content (PageA) because the SDK is likely reinitializing the shared view without keeping track of the current state.

        We are checking with the engineering team if any workaround for this.

  • ChaitanyaSai370's avatar
    ChaitanyaSai370
    Copper Contributor

    Hi Pradeep1090/ @Sayali-MSFT, this is not related to the issue you are facing but, wanted some help with understanding the purpose of the share button. I have a custom app which opens a static page on the side panel that has some information about the app. I do not need the "Share" option that a static tab provides by default. Is there a way to hide or remove the share button in the meeting side panel?

    • Sayali-MSFT's avatar
      Sayali-MSFT
      Icon for Microsoft rankMicrosoft

      ChaitanyaSai370 -Currently, Microsoft Teams does not provide an option to hide the share button in the meeting side panel. The share button is a default feature and cannot be customised or removed through the standard settings.

    • Sayali-MSFT's avatar
      Sayali-MSFT
      Icon for Microsoft rankMicrosoft
      Pradeep1090-We got the reply from engineering team,
      That is currently impossible. This feature has always been designed in such a way that it broadcasts the contentURL attached in the app definition, not the current state of the side panel.

Resources