Making changes as per suggestion at vikunja/vikunja#2442 (comment)

This commit is contained in:
Devadatta Sahoo 2024-07-19 13:37:41 +05:30
parent 79dfa36cf7
commit ba672a117e

@ -253,6 +253,8 @@ const actions = computed(() => {
])))
})
const frontendUrl = computed(() => configStore.frontendUrl)
async function attachmentUpload(files: File[] | FileList): (Promise<string[]>) {
const uploadPromises: Promise<string>[] = []
@ -377,7 +379,7 @@ async function deleteComment(commentToDelete: ITaskComment) {
}
function getCommentUrl(commentId: string) {
return `${location.origin}${location.pathname}${location.search}#comment-${commentId}`
return `${frontendUrl.value}${location.pathname}${location.search}#comment-${commentId}`
}
</script>