Getting dashboard Id for a dashboard widget

Is there a way to get the dashboard id from a dashboard widget

The widgetId and instanceid in the context api’s response are giving the ids of the widgets but I am interested in the dashboard Id - which shows up in the browser URL.

Why do I need this?
I am building a stripe based payment form and this needs to redirect back to the same page after the payment.

Is it possible to get this id ( or the parent url ) from the widget?

Thank you :slight_smile:

Hello there @kranthi_thoughtflow,

As of today there is no way to achieve that.

I have turned this into a request so that our team is in the loop and so other users can vote for it :grin:

1 Like