Skip to content

Dashboards : Panel data links with dashboard variables in URL doesn't work in Grafana 11.4 #108426

@sumitk23

Description

@sumitk23

What happened?

Panel with data links to update dashboard variables doesn't work correctly. On clicking data link, url gets updated correctly, but panels dependent on updated variable doesn't load (corresponding request to backend gets cancelled) and loading spinner keeps running indefinitely.

What did you expect to happen?

On clicking data link, url should update and also data in panels dependent on updated variable should update successfully.

Did this work before?

Yes, this was working in Grafana 10.2

How do we reproduce it?

  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).

Image

Already reported in community : https://community.grafana.com/t/dashboard-variables-in-url-do-not-trigger-data-update-in-grafana-11-5/144049

Workaround :

  • Opening the link in a new tab works correctly.
  • Manually refreshing the page updates the data.

Is the bug inside a dashboard panel?

Yes

Environment (with versions)?

Grafana: 11.4.0
OS: macos
Browser: Google chrome

Grafana platform?

Kubernetes

Datasource(s)?

No

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    🗂️ Needs Triage / Escalation

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions