[SOLVED] Does FlowRouter always redirect to the homepage after login?

Based on my test in this repo, I am not able to get FlowRouter to redirect to any other page than the homepage after login/signup.

I have no explicit redirects to the homepage. Even so, after login, I am redirected to the homepage. This might be nice in some cases, but is a nuisance when I want to redirect back to a specific page.

In addition to the example in the above repo, I also tried this:


 if (Meteor.isClient) {

This is ignored and I am still redirected to the homepage.

Please show me an example of getting FlowRouter to not redirect to the homepage after login.

This is related to this question that I asked earlier.

1 Like

Anytime you login (from login.jsx at least) it looks like you’re explicitly redirecting to the home page.

Also look into this:

1 Like

@sergiotapia that was the issue! Thank you thank you thank you! :joy:

I’ve been pulling my hair out trying to figure out the issue and it turns out I was looking in the wrong place!

Also, as per your recommendation, I will be sure to search my own repo as part of debugging, which would have uncovered the redirect in the login form, which I must have added a long time ago and forgotten about.

Happy to help! padding