sbormann / ioBroker.iqontrol

Fast Web-App for Visualization.
MIT License
65 stars 24 forks source link

Datapoint as URL #272

Closed Esto88 closed 1 year ago

Esto88 commented 1 year ago

Describe the bug
When the Value in the Datapont has only for Example an IP Adress. IQontrol adds: http://"IP-AdressControler"/iqontrol/ and then The Value from the Datapoint When the Value in the Datapoint already has an "http://" IQontrol does nothing.

Is this behavior intended?

Option in HTML/URL -Open URL in New Window Version of IQontrol: V2.1.0

sbormann commented 1 year ago

Hi, this is the default behaviour how urls are referenced in html. An ip-adress without protocol ("http://") is equal to any other string and therefore a reference inside the actual directory the calling page is. The reason you might find that unintuitive is, that modern browsers automatically hide (but internally add) the https:// to any url you enter in the search bar. But doing that is no option, because that would take the possibility to reference to diretorys inside the page.