ayushsharma82 / ESP-DASH

Blazing fast library to create a functional dashboard for ESP8266 / ESP32
https://espdash.pro
GNU General Public License v3.0
968 stars 200 forks source link

Link Card - open new window but with ESP-DASH again #238

Open CByteITSolution opened 2 weeks ago

CByteITSolution commented 2 weeks ago

Link not work. when I press the button an new window in the browser open but again with the ESP IP address and ESP-DASH and not the link I set in setup with example _card_linkwebserial.update("https://espdash.pro");

mathieucarbou commented 1 week ago

Hello, I am the author of this extension (which I contributed to the pro version). I am using them a lot and they do work. I am using them like this:

Card _consoleLink = Card(&dashboard, LINK_CARD, YASOLR_LBL_084);

then, called only once because link does not change for me:

_consoleLink.update("/console");

The console page opens in a new window.

You can look at the page html source to see how it is generated: this is a simple href link with a target set to _blank.

Is your browser preventing opening in new window or tab ?

CByteITSolution commented 1 week ago

Hello, works with:

card_link_otaupdate.update("http://" + strIP + ":8081/update");

thx