I am using the approach of @Maxhodges to use the login dialog in a modal dialog, like explained here:
meteor-useraccounts/bootstrap#25
Yet, every time the user logs in, flow router automatically jumps to the home page of my application instead of staying on the current page. It does not behave this way if I am using the standard full-page login dialog, so my flow router configuration seems to be correct and it must have something to do with the useraccounts package itself (either core or flowrouting).