-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redirect() and FlowRouter.go() do not update address bar when called within trigger #239
Comments
You should not check user permission on the router. Could you check there are any errors on the console? If so, just bring them here. |
I'm not checking permission on the router, I already do that on the
main layout and establish a user session.
There's no reactive dependency either, just a simple one time check of
an information that is altrady on the client.
Besides, there is no problem with direct entry, just clicks on links.
There is no error printed on the console.
|
Okay. I will have a look at this.
|
Hi, I just fixed this issue. |
Yes, it now works as expected. Thanks. |
I'm using a basic trigger to check the currently logged in user's role and if it does not pass, I redirect to another route:
When I enter
http://localhost:3000/adminonly
directly, I do get redirected tohttp://localhost:3000/
but if I click on links with<a href="/adminonly">Go to admin area</>
although thehome
template gets rendered, the URL on the address bar remains unchanged ashttp://localhost:3000/adminonly
.The behavior is the same when I use
FlowRouter.go('/')
instead as well.The text was updated successfully, but these errors were encountered: