mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-08 18:39:40 +00:00
Don't show wrong info in logbook (#17439)
This commit is contained in:
@@ -46,7 +46,10 @@ 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=${attributeValue}
|
||||
return html`<a
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
href=${attributeValue}
|
||||
>${attributeValue}</a
|
||||
>`;
|
||||
} catch (_) {
|
||||
|
||||
Reference in New Issue
Block a user