Dynamic link creation in kibana from config file or backend data and used to display in dashboards

Hello All,

I need to know best possibilities to achive below requirement:

I have a HOME dashboard displaying critical alerts per usecases and click on particular link and land
to respective dashborads.
Now this would be done for test,dev and QA instances i.e the URL for all enviornment should be maintained somewhere so that I can use in visulization.
Currently its done by static URL which is not the correct way to implement.We need ALL this links to be updated from some config or way dynamically.
Can someone plz tell the best approach.The URL clicks directs to respective dashboards ,but the URL itself should be maintained dynamically.

How its done currently is shared below.(For different ENV diff URL would be there and this should be not static/manual update of URL...Instead dynamic)