From 8239b9666b82b0423b41a1316a386183cd33f28e Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 8 Jan 2025 14:20:04 +0100 Subject: [PATCH] :lipstick: Use correct frontend url on comment related emails --- backend/src/app/rpc/commands/comments.clj | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/backend/src/app/rpc/commands/comments.clj b/backend/src/app/rpc/commands/comments.clj index cf529b6c4..d87e5cb59 100644 --- a/backend/src/app/rpc/commands/comments.clj +++ b/backend/src/app/rpc/commands/comments.clj @@ -11,6 +11,7 @@ [app.common.exceptions :as ex] [app.common.geom.point :as gpt] [app.common.schema :as sm] + [app.common.uri :as uri] [app.common.uuid :as uuid] [app.config :as cf] [app.db :as db] @@ -45,8 +46,13 @@ (str/join ""))) (defn- format-comment-url - [{:keys [project-id file-id page-id]}] - (str/ffmt "%/#/workspace/%/%?page-id=%" (cf/get :public-uri) project-id file-id page-id)) + [{:keys [team-id file-id page-id]}] + (str/ffmt "%/#/workspace?%" + (cf/get :public-uri) + (uri/map->query-string + {:file-id file-id + :page-id page-id + :team-id team-id}))) (defn- format-comment-ref [{:keys [seqn]} {:keys [file-name page-name]}]