Don't show wrong info in logbook (#17439)

This commit is contained in:
Bram Kragten
2023-07-31 20:25:57 +02:00
committed by GitHub
parent 2a9ef7d91f
commit 3e60d2e850
3 changed files with 9 additions and 3 deletions

View File

@@ -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 (_) {