mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
weblink target (#3431)
This commit is contained in:
parent
54ea6176aa
commit
dcfed5d7e1
@ -37,7 +37,10 @@ class HuiWeblinkRow extends LitElement implements EntityRow {
|
||||
}
|
||||
|
||||
return html`
|
||||
<a href="${this._config.url}" target="_blank">
|
||||
<a
|
||||
href=${this._config.url}
|
||||
target=${this._config.url.indexOf("://") !== -1 ? "_blank" : ""}
|
||||
>
|
||||
<ha-icon .icon="${this._config.icon}"></ha-icon>
|
||||
<div>${this._config.name}</div>
|
||||
</a>
|
||||
|
Loading…
x
Reference in New Issue
Block a user