Clear Filters Button in Grafana v12

In version 10, we have a navigation library panel that uses the business text plugin from volkovlabs to provide functionality where we can add links, buttons with specific time ranges and a button for clearing filters. The buttons are actually anchors which when clicked change the URL like the to and from parameters for specific time ranges. The clear filters button essentially clears all the URL parameters except from and to, and effectively clears or resets the all variable filters. This works great in v10, but in v11/12, clearing the URL parameters doesn’t seem to effect the selected variable values. Is there something else we can do to try and get this functionality in v11 and v12 (preferably without doing a page refresh)?

can you share the screenshot , and what you want in url after clicking the reset button , will help you to solve this .

thanks

@mikhailvolkov I would like to dynamically get all the variables for a dashboard. On your Business Forms plugin, context.grafana.templateService is available to be referenced but its not available in the Business Text plugin. Is it possible to use getTemplateSrv in the plugin (like below)? I’ve tried this in the Before and After Content Ready sections and it doesn’t seem to be working. Or do you have any other suggestions for dynamically getting all variables on a dashboard? Thanks for your help!

import { getTemplateSrv } from '@grafana/runtime';