ayushsharma82 / ESP-DASH

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

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

Closed CByteITSolution closed 1 week ago

CByteITSolution commented 1 month 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 month 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 month ago

Hello, works with:

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

thx

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 week ago

This issue was closed because it has been stalled for 5 days with no activity.