Dashboard with dynamic URL between HA and Nodered

hello, i would like to be able to display the nodered dashboard hosted on the same machine.
For example, via a URL from the HA dashboard.
Here’s an example which doesn’t work the display is ok but the URL not

<ha-icon icon="mdi:sun-angle-outline"></ha-icon> Synthèse graphique [{{states('sensor.ha_ip_nr_smartphoton') }}]({{states('sensor.ha_ip_nr_smartphoton')}})

The (dynamic) URL was passed from a Nodered flow because I don’t know how else to do it. But it doesn’t work. The text is fine, but the URL points to “lovelace/home”.
I can’t “hard code” the IP address because it can vary from machine to machine.
Do you have any idea how to make this link from one dashboard to another, ah yes if it’s possible, in the same tab on the browser side (don’t open another one).
Thank you all for your ideas.
(My HA skills are “light”)