From 5276b0f1fa6a0ff1a2c17d64ac65a28b1f67385e Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 14 May 2025 21:48:04 +0200 Subject: [PATCH] fix(task): make sure task comment url only contains one slash --- frontend/src/components/tasks/partials/Comments.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/tasks/partials/Comments.vue b/frontend/src/components/tasks/partials/Comments.vue index 794ec72df..ee6927130 100644 --- a/frontend/src/components/tasks/partials/Comments.vue +++ b/frontend/src/components/tasks/partials/Comments.vue @@ -420,7 +420,8 @@ async function deleteComment(commentToDelete: ITaskComment) { } function getCommentUrl(commentId: string) { - return `${frontendUrl.value}${location.pathname}${location.search}#comment-${commentId}` + const baseUrl = frontendUrl.value.endsWith('/') ? frontendUrl.value.slice(0, -1) : frontendUrl.value + return `${baseUrl}${location.pathname}${location.search}#comment-${commentId}` }