mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
Fixed Bug: Calendar & parent cards URLs used absolute URLs
This commit is contained in:
parent
ee323d97b4
commit
43482d9e48
2 changed files with 2 additions and 2 deletions
|
|
@ -360,7 +360,7 @@ BlazeComponent.extendComponent({
|
||||||
end: end || card.endAt,
|
end: end || card.endAt,
|
||||||
allDay:
|
allDay:
|
||||||
Math.abs(end.getTime() - start.getTime()) / 1000 === 24 * 3600,
|
Math.abs(end.getTime() - start.getTime()) / 1000 === 24 * 3600,
|
||||||
url: FlowRouter.url('card', {
|
url: FlowRouter.path('card', {
|
||||||
boardId: currentBoard._id,
|
boardId: currentBoard._id,
|
||||||
slug: currentBoard.slug,
|
slug: currentBoard.slug,
|
||||||
cardId: card._id,
|
cardId: card._id,
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@ BlazeComponent.extendComponent({
|
||||||
if (card) {
|
if (card) {
|
||||||
const board = Boards.findOne(card.boardId);
|
const board = Boards.findOne(card.boardId);
|
||||||
if (board) {
|
if (board) {
|
||||||
result = FlowRouter.url('card', {
|
result = FlowRouter.path('card', {
|
||||||
boardId: card.boardId,
|
boardId: card.boardId,
|
||||||
slug: board.slug,
|
slug: board.slug,
|
||||||
cardId: card._id,
|
cardId: card._id,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue