Drilldown url broken

at the beginning of the year I think, I could access to the dashboard by the url http://localhost/db/my_dashboard_name (from a drilldown in my case) and that was convenient I could call a dashboard from a status panel. But after an update of grafana, the calls I made are now broken.
How can I do that now ?

May be that could be related to Dashboard url without uid

Don’t think http://localhost/db/my_dashboard_name have never worked. But http://localhost/dashboard/db/my_dashboard_name is from Grafana v5.0 a deprecated url which Grafana still understands and redirect to http://localhost/d/:uid/:slug. See release notes for details.

Since it’s a deprecated url it’s highly recommended to start using the new url format http://localhost/d/:uid/:slug.

I understand the changes but I don’t know how I can get the uid of the dashboard I want to visit when I’m on my status panel (in the drilldown box with the URL I’d like to use)

If you’re using absolute url’s visit the dashboard you want to link to and you’ll get the correct url that’s include the uid. If you’re using dashboard link it should use the legacy url if you’re using a pre Grafana v5.3.0 version, otherwise if later version it should use the new uid based url.

i use 5.3.4
but in my status panel, I dont know the UID of the next dashboard I want to visit as I’m repeating this status panel, based on a template variable. This is why the slug was good for that (which matched the template variable). Is there an internal function that can provides me the UID of a dashboard from the slug info that could use in the drilldown ?

Please include what you did before that doesn’t work now with an example. I don’t quite follow.

With the template variable named server I used this URL /dashboard/db/$server (and that’s ok like that for the moment), but as you said it’s deprecated, if i need to go on that dashboard with this url /d/:uid/:slug , how can I provide the UID related to the variable of the dashboard behind the value of the $server ?

If i need to go on that dashboard with this url /d/:uid/:slug , how can I provide the UID related to the variable of the dashboard behind the value of the $server ?

Grafana cannot populate a template variable for you with uid’s. Currently you can define custom variables, but only values are supported right now which basically only allows you to show uid’s in a drop down and not the server name.

We haven’t decided on removing the legacy url yet so please continue to use that for now. To support your use case with new url format a new feature/change is needed so please open such at Grafana github repo if your interested.

thank you very much
I’ll do that .