Dashboard variables in URL do not trigger data update in Grafana 11.5

Since upgrading to Grafana 11.5, I noticed that dashboard custom variables passed via URL parameters are not updating the data correctly when opening a link within the same tab. The URL updates with the correct variables, but the data on the dashboard does not refresh unless I manually reload the page (F5).

This was working correctly in Grafana 9.x, where clicking a data link with URL variables would update the dashboard and refresh the data accordingly.

I am using this because I have both a graph panel and a table panel in my dashboard. The table relies on the same variable that is passed via the URL, so I need the dashboard to update when the variable changes.

Steps to reproduce:

  1. Create a Grafana dashboard with variables (e.g., var-status, var-group, var-template).

  2. Use a data link in a graph panel with a URL like:
    d/${__dashboard.uid}?var-status=${__data.fields.status}&var-group=${group}&var-template=${template}&${__url_time_range}

  3. Click on the link in the same tab.
    4.The URL updates correctly, but the data does not refresh unless the page is manually reloaded (using DevTools, we can see that the queries sent to the Grafana backend are being canceled. This does not happens when I refresh the page).

Expected behavior:

  • The dashboard should automatically update the data when the URL parameters change, as it did in previous versions.

Workaround:

  • Opening the link in a new tab works correctly.

  • Manually refreshing the page (F5) updates the data.

  • Grafana Version: 11.5.x

You can use the dashboard variable in the data source to rerender panel when dashboard variable changes.

Hi

I’m not sure to understand what this means ^^"

You can use the dashboard variable in the data source to rerender panel when dashboard variable changes.

Using link with __dashboard variables is not working (e.g. /d/${__dashboard.uid}/${__dashboard.name}?…) when the __dashboard.name is not the same as the slug used.

Exemple : dashboard with name My dashboard the URL to use is /d/${__dashboard.uid}/my-dashboard

With this URL hard-code (not using ${__dashboard.name}) is working well.

Is there a way to access the dashboard slug in a variable?

Unfortunately, there’s no slug variable in Grafana (I created a constant like my_dashboard_slug with the slug value to overcome this).

However, I faced so many issues with version 11.5, such as data links only working after multiple mouse clicks, data not refreshing after a variable update, and client machines experiencing 100% CPU usage that I ended up downgrading to 10.4, where everything works as expected.

1 Like