File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ AccountsTemplates.ensureSignedIn = function(context, redirect) {
6060 } ) ;
6161
6262 // redirect settings
63- AccountsTemplates . avoidDefaultRedirect = true ;
63+ AccountsTemplates . avoidRedirect = true ;
6464 AccountsTemplates . avoidClearError = true ;
6565 AccountsTemplates . redirectToPrevPath = true ;
6666
@@ -93,7 +93,7 @@ AccountsTemplates.linkClick = function(route) {
9393 return ;
9494 }
9595 var path = AccountsTemplates . getRoutePath ( route ) ;
96- if ( path === '#' || path === FlowRouter . current ( ) . path ) {
96+ if ( path === '#' || AccountsTemplates . avoidRedirect || path === FlowRouter . current ( ) . path ) {
9797 AccountsTemplates . setState ( route ) ;
9898 } else {
9999 Meteor . defer ( function ( ) {
@@ -124,8 +124,8 @@ AccountsTemplates.logout = function() {
124124} ;
125125
126126AccountsTemplates . postSubmitRedirect = function ( route ) {
127- if ( AccountsTemplates . avoidDefaultRedirect ) {
128- AccountsTemplates . avoidDefaultRedirect = false ;
127+ if ( AccountsTemplates . avoidRedirect ) {
128+ AccountsTemplates . avoidRedirect = false ;
129129 if ( AccountsTemplates . redirectToPrevPath ) {
130130 FlowRouter . redirect ( AccountsTemplates . getPrevPath ( ) ) ;
131131 }
You can’t perform that action at this time.
0 commit comments