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:
@@ -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 (_) {
|
||||
|
||||
Reference in New Issue
Block a user