How to redirect to requested page after login?

How to redirect to original requested page after login?

Scenario: Lets say a user try to access a new blog post page which can only be accessible by logged in users so meteor app sends user to the login page then after successful login user should be redirect back to the new post page.

I am using flowrouter, useraccounts:flow-routing, and latest meteor build.

Please help.

Take a look at the Kadira Meteor Routing Guide Redirecting after Successful Login section (quick summary - you’ll want to look into using Accounts.onLogin).