Skip to content

Commit b91bc77

Browse files
Update src/widgets/peopleSearch.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 0830c26 commit b91bc77

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/widgets/peopleSearch.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ export const createPeopleSearch = function (dom, kb, me: NamedNode | null, onCli
132132
if (onClickHandler) {
133133
onClickHandler(person)
134134
} else {
135-
window.open(person.webId, '_blank')
135+
const newWindow = window.open(person.webId, '_blank', 'noopener,noreferrer')
136+
if (newWindow) {
137+
newWindow.opener = null
138+
}
136139
}
137140
searchDiv.style.display = 'none'
138141
})

0 commit comments

Comments
 (0)