Following the update of `NcListItem` to allow control over
where and how passed `hrefs` open, the search result component
can now make use of these props.
See : https://github.com/nextcloud-libraries/nextcloud-vue/pull/4923
Resolves : #41800
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
<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"
thumbnailErrorHandler() {
this.thumbnailHasError = true
},
- openResult(url) {
- if (url) {
- window.location = url
- }
- },
},
}
</script>