Panel link is not rendering to correct URL on variable value change

Hi Grafana Community,

We’re experiencing an issue with the stat panel panel links . When switching between environments (e.g., staging, production, etc.) using a variable or URL parameter, the panel link does not update or render the correct value unless the page is manually reloaded.

Steps to Reproduce:

  1. Configure a panel with a dynamic link using variables (e.g., ${env}).
  2. Switch environments via a dropdown or URL parameter (e.g., from stag to prod).
  3. Observe that the panel link does not reflect the new environment.
  4. Manually reload the page — the link then updates correctly.

Expected Behavior:

The panel link should dynamically update based on the selected environment without requiring a manual page reload.

Actual Behavior:

The link remains stale or incorrect until the user manually refreshes the page.

Environment:

  • Grafana version: v11.4.0
  • Browser: Chrome 136.0.7103.114
  • Data source: OpenSearch
  • Panel type: Stat panel

Let me know if any additional details would help. Thanks in advance for your support!