From 43482d9e48e330924fc36e51efca56c7c496f89d Mon Sep 17 00:00:00 2001 From: Majed6 <7234719+Majed6@users.noreply.github.com> Date: Sat, 13 Mar 2021 15:08:28 +0300 Subject: [PATCH] Fixed Bug: Calendar & parent cards URLs used absolute URLs --- client/components/boards/boardBody.js | 2 +- client/components/cards/cardDetails.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js index b08de3384..900931d05 100644 --- a/client/components/boards/boardBody.js +++ b/client/components/boards/boardBody.js @@ -360,7 +360,7 @@ BlazeComponent.extendComponent({ end: end || card.endAt, allDay: Math.abs(end.getTime() - start.getTime()) / 1000 === 24 * 3600, - url: FlowRouter.url('card', { + url: FlowRouter.path('card', { boardId: currentBoard._id, slug: currentBoard.slug, cardId: card._id, diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js index 832007f6d..78b72142d 100644 --- a/client/components/cards/cardDetails.js +++ b/client/components/cards/cardDetails.js @@ -114,7 +114,7 @@ BlazeComponent.extendComponent({ if (card) { const board = Boards.findOne(card.boardId); if (board) { - result = FlowRouter.url('card', { + result = FlowRouter.path('card', { boardId: card.boardId, slug: board.slug, cardId: card._id,