1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-05-08 17:28:46 +01:00

Fix attribute url links (#16462)

This commit is contained in:
bikeshop45
2023-05-08 05:13:35 -04:00
committed by GitHub
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 (_) {