GitHub user parag2131 created a discussion: Embedded SDK: How to navigate to 
specific tab using button click in Markdown chart?

### 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

- [x] 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.

GitHub link: https://github.com/apache/superset/discussions/40726

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to