From aa652f38c7bcfbcddbec4290995e34a1d171bbab Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Sat, 20 Jun 2015 10:48:06 +0300 Subject: About page and router login fix --- client/button.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client/button.js') diff --git a/client/button.js b/client/button.js index 27beb28..4a9906a 100644 --- a/client/button.js +++ b/client/button.js @@ -178,5 +178,7 @@ Template.photo.helpers({ }) Accounts.onLogin(function() { - Router.go('dates'); + if (Router.current().route.getName() == 'login') { + Router.go('dates'); + } }); -- cgit v1.3.1