mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-18 23:06:40 +00:00
Fix attribute url links (#16462)
This commit is contained in:
parent
36a87da1fe
commit
a5ba2499c0
@ -45,7 +45,7 @@ export const computeAttributeValueDisplay = (
|
||||
// If invalid URL, exception will be raised
|
||||
const url = new URL(attributeValue);
|
||||
if (url.protocol === "http:" || url.protocol === "https:")
|
||||
return html`<a target="_blank" rel="noreferrer" href=${value}
|
||||
return html`<a target="_blank" rel="noreferrer" href=${attributeValue}
|
||||
>${attributeValue}</a
|
||||
>`;
|
||||
} catch (_) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user