Suvash - ### πŸ“˜ ScenarioWe are using AppEmbed...

Scenario


We are using AppEmbed to display
Page.Liveboards
.

  • When a user clicks on one of the Liveboards, we use the
    RouteChange
    event to capture the route change.
  • We then redirect the user to our Liveboard page to display the selected Liveboard.
---

Behavior Observed


  • There are two types of Liveboards:
    • Liveboards with tabs
    • Liveboards without tabs
  • In our Liveboard page:
    • If the Liveboard doesn't have tabs, the browser back button takes the user back to the Dashboards page as expected.
    • If the Liveboard has tabs, the browser back button loops within the Liveboard embed, navigating back through tab routes instead of exiting the page.
---

Routes Observed


We noticed that different routes are used for displaying Liveboards:

  • /insights/pinboard/{guid}
    β€” Seen in the
    RouteChange
    payload from the Dashboard page when a user clicks a link.
  • /insights/pinboard/{guid}/tab/{guid}
    β€” Seen in the
    RouteChange
    payload in the Liveboard page after it loads.
  • /embed/viz/{guid}
  • `/embed/insights/viz/{guid}/tab/{guid}`Sometimes these come **with tab info**, and sometimes **without**, even for Liveboards that actually contain tabs.
---

Questions


  1. Is there a way to capture the tab ID within the Dashboards page on the first
    RouteChange
    ?
  2. Is there a way to prevent the browser back loop issue on Liveboard embeds that have tabs?
  3. Why are there inconsistencies within the routes?
    .
Was this page helpful?