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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ export const computeAttributeValueDisplay = (
// If invalid URL, exception will be raised // If invalid URL, exception will be raised
const url = new URL(attributeValue); const url = new URL(attributeValue);
if (url.protocol === "http:" || url.protocol === "https:") 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 >${attributeValue}</a
>`; >`;
} catch (_) { } catch (_) {