Browse Source

Merge pull request #4411 from Ben0it-T/fix-import-Done-Button-do-not-redirect

fix Import Done Button do not redirect
Lauri Ojansivu 3 years ago
parent
commit
5514c357ca
1 changed files with 6 additions and 1 deletions
  1. 6 1
      client/components/import/import.js

+ 6 - 1
client/components/import/import.js

@@ -87,8 +87,13 @@ BlazeComponent.extendComponent({
         if (err) {
         if (err) {
           this.setError(err.error);
           this.setError(err.error);
         } else {
         } else {
+          let title = getSlug(this.importedData.get().title) || 'imported-board';
           Session.set('fromBoard', null);
           Session.set('fromBoard', null);
-          Utils.goBoardId(res);
+          FlowRouter.go('board', {
+            id: res,
+            slug: title,
+          })
+          //Utils.goBoardId(res);
         }
         }
       },
       },
     );
     );