summaryrefslogtreecommitdiffstats
path: root/config/router.js
diff options
context:
space:
mode:
Diffstat (limited to 'config/router.js')
-rw-r--r--config/router.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/config/router.js b/config/router.js
index 80e89e4c..ad76035b 100644
--- a/config/router.js
+++ b/config/router.js
@@ -1,7 +1,9 @@
let previousPath;
-FlowRouter.triggers.exit([({path}) => {
- previousPath = path;
-}]);
+FlowRouter.triggers.exit([
+ ({ path }) => {
+ previousPath = path;
+ },
+]);
FlowRouter.route('/', {
name: 'home',
@@ -192,9 +194,11 @@ const redirections = {
_.each(redirections, (newPath, oldPath) => {
FlowRouter.route(oldPath, {
- triggersEnter: [(context, redirect) => {
- redirect(FlowRouter.path(newPath, context.params));
- }],
+ triggersEnter: [
+ (context, redirect) => {
+ redirect(FlowRouter.path(newPath, context.params));
+ },
+ ],
});
});