Skip to content

Commit

Permalink
fixed #170
Browse files Browse the repository at this point in the history
  • Loading branch information
splendido committed Nov 25, 2014
1 parent 882eb0e commit 98bbf92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,8 @@ AT.prototype._init = function() {
AT.prototype.linkClick = function(route){
if (AccountsTemplates.disabled())
return;
if (AccountsTemplates.avoidRedirect || AccountsTemplates.getRoutePath(route) === "#")
var path = AccountsTemplates.getRoutePath(route);
if (path === "#" || AccountsTemplates.avoidRedirect || path === Router.current().route.path())
AccountsTemplates.setState(route);
else
Meteor.defer(function(){
Expand Down

0 comments on commit 98bbf92

Please sign in to comment.