I want to customize Grfana Font-end route logic

I want to pass a querystring to Grafana when user open the page. But Grafana will lose the queryString when user swtich the pages. Is there any way to customize Grafana to fix the querystring when routing ?

Not really. Maybe you could do it with a proxy like nginx (or IIS if you are on Windows) in front of Grafana? Not sure though.