feat: add more default attributes to the rel attribute in link mode (#1491)
Co-authored-by: Dominik Pschenitschni <mail@celement.de> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/1491 Reviewed-by: konrad <k@knt.li> Co-authored-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de> Co-committed-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
This commit is contained in:
parent
cb381e2ce9
commit
2a4bf25d20
1 changed files with 2 additions and 2 deletions
|
@ -69,10 +69,10 @@ watchEffect(() => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// if there is a href we assume the user wants an external link via a link element
|
// if there is a href we assume the user wants an external link via a link element
|
||||||
// we also set the attribute rel to "noopener" but make it possible to overwrite this by the user.
|
// we also set a predefined value for the attribute rel, but make it possible to overwrite this by the user.
|
||||||
if ('href' in attrs) {
|
if ('href' in attrs) {
|
||||||
nodeName = 'a'
|
nodeName = 'a'
|
||||||
bindings = {rel: 'noopener'}
|
bindings = {rel: 'noreferrer noopener nofollow'}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentNodeName.value = nodeName
|
componentNodeName.value = nodeName
|
||||||
|
|
Loading…
Add table
Reference in a new issue