Skip to content

Embedded SDK: How to navigate to specific tab using button click in Markdown chart? #40522

@parag2131

Description

@parag2131

Bug description

Hi everyone,

I have a Superset dashboard embedded in an external app using the
embedded SDK and guest tokens (with RLS).

On the Home tab, I have buttons inside Markdown charts. When a user
clicks a button, I want to open a specific tab directly.

What I tried:

  1. href link with target="_top" → works but loads public permalink
    URL, bypassing guest token and RLS

  2. urlParams: { anchor: 'TAB-xxxx' } in embedDashboard config →
    dashboard always opens on Home tab, anchor is ignored

  3. postMessage from iframe to parent → message never received

Has anyone successfully navigated to a specific tab from a Markdown
button click inside an embedded dashboard while keeping the guest
token and RLS active?

Any solution or workaround is appreciated. Thank you!

Screenshots/recordings

No response

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions