From 9fa5b59d7c163489c16ff51f2da546d7f8a7b760 Mon Sep 17 00:00:00 2001 From: Ben0it-T Date: Mon, 14 Mar 2022 21:46:11 +0100 Subject: [PATCH] Duplicate Board now open board --- client/components/boards/boardsList.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/components/boards/boardsList.js b/client/components/boards/boardsList.js index a5b1ccb51..467e5686a 100644 --- a/client/components/boards/boardsList.js +++ b/client/components/boards/boardsList.js @@ -228,6 +228,7 @@ BlazeComponent.extendComponent({ evt.preventDefault(); }, 'click .js-clone-board'(evt) { + let title = getSlug(Boards.findOne(this.currentData()._id).title) || 'cloned-board'; Meteor.call( 'copyBoard', this.currentData()._id, @@ -242,7 +243,11 @@ BlazeComponent.extendComponent({ } else { Session.set('fromBoard', null); subManager.subscribe('board', res, false); - Utils.goBoardId(res); + FlowRouter.go('board', { + id: res, + slug: title, + }); + //Utils.goBoardId(res); } }, );