Meteor.js and Bootstrap modal dismiss

I use a bootstrap modal in my meteor app to display login panel (account-ui package). After successful login is displayed a button “Go to dashboard” with a router redirect to /dashboard.

{{#if currentUser}}

<a href="/dashboard" class="btn btn-primary">Go to dashboard</a>

{{else}}

{{> register}}
{{> login}}
{{/if}}
The problem is, that after redirection even if modal disappear the screen stays black and and whole page is blocked (exactly like with the modal, just without modal).

If if add data-dismiss=“modal” to my redirection button, modal is dismissed but redirection doesn’t work - I am still on my home page.

<a href="/dashboard" class="btn btn-primary" data-dismiss="modal">Go to dashboard</a>

How can I make it to dismiss a modal and still redirect me to the router link?