Actually open links in new tab

This commit is contained in:
Pieter Vander Vennet 2023-12-19 16:45:27 +01:00
parent 3e680bb63b
commit 0d4f2c9c36

View file

@ -1294,7 +1294,10 @@ export default class SpecialVisualizations {
tagSource: UIEventSource<Record<string, string>>,
args: string[]
): BaseUIElement {
const [text, href, classnames, download, ariaLabel] = args
let [text, href, classnames, download, ariaLabel] = args
if (download === "") {
download = undefined
}
const newTab = download === undefined && !href.startsWith("#")
return new VariableUiElement(
tagSource.map(