summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/accounts.js10
-rw-r--r--config/router.js21
2 files changed, 28 insertions, 3 deletions
diff --git a/config/accounts.js b/config/accounts.js
index f88f2d83..b19c12b9 100644
--- a/config/accounts.js
+++ b/config/accounts.js
@@ -38,9 +38,13 @@ AccountsTemplates.configure({
},
});
-['signIn', 'signUp', 'resetPwd', 'forgotPwd', 'enrollAccount'].forEach(
- routeName => AccountsTemplates.configureRoute(routeName),
-);
+[
+ 'signIn',
+ 'signUp',
+ 'resetPwd',
+ 'forgotPwd',
+ 'enrollAccount',
+].forEach(routeName => AccountsTemplates.configureRoute(routeName));
// We display the form to change the password in a popup window that already
// have a title, so we unset the title automatically displayed by useraccounts.
diff --git a/config/router.js b/config/router.js
index ad76035b..2e66c67f 100644
--- a/config/router.js
+++ b/config/router.js
@@ -26,6 +26,27 @@ FlowRouter.route('/', {
},
});
+FlowRouter.route('/public', {
+ name: 'public',
+ triggersEnter: [AccountsTemplates.ensureSignedIn],
+ action() {
+ Session.set('currentBoard', null);
+ Session.set('currentList', null);
+ Session.set('currentCard', null);
+
+ Filter.reset();
+ EscapeActions.executeAll();
+
+ Utils.manageCustomUI();
+ Utils.manageMatomo();
+
+ BlazeLayout.render('defaultLayout', {
+ headerBar: 'boardListHeaderBar',
+ content: 'boardList',
+ });
+ },
+});
+
FlowRouter.route('/b/:id/:slug', {
name: 'board',
action(params) {