Merge pull request #42062 from nextcloud/use-href-for-search-results

Correct semantics for link opening in global search
pull/42253/head
F. E Noel Nfebe 2023-12-06 20:17:46 +07:00 committed by GitHub
commit 0eadd0dd6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 9 deletions

@ -2,7 +2,8 @@
<NcListItem class="result-items__item"
:name="title"
:bold="false"
@click="openResult(resourceUrl)">
:href="resourceUrl"
target="_self">
<template #icon>
<div aria-hidden="true"
class="result-items__item-icon"
@ -91,11 +92,6 @@ export default {
thumbnailErrorHandler() {
this.thumbnailHasError = true
},
openResult(url) {
if (url) {
window.location = url
}
},
},
}
</script>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long