-
Notifications
You must be signed in to change notification settings - Fork 16
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
Feature Request: Redirecting to url even when logged in #24
Comments
@rarog I know this is way late to respond to this. Is this still something that is requested? Did you work on a solution of you own? |
@visto9259 That's still something of interest and improvement of the behavior. |
@rarog Where do you set the redirect param? In a guard or an event listener that checks if the user is logged in? Or in a controller that redirects when the user is not logged in? |
The controller AFAIR, which "stores" the url as GET parameter in the url. use_redirect_parameter_if_present setting is it. |
Let me just make sure I understand the flow of your use case. You log back in in one tab which gets redirected to the original page. On the other tabs, what action do you do? You log in again? The login action will redirect to the default route defined in the options if the user is already logged in. It ignores the redirect parameter. This is probably the issue you have. It should be an easy fix to use the redirect parameter if set and if configured to be used. |
Yes, that's the exact description of the scenario for the issue. |
Current behaviour is that the redirection is done on login. Let's say I have n tabs, where I'm logged in, if I open all n of them after logout, I get a login screen with redirection parameter. If I log in in one of the tabs, I'll be redirected to the url in the parameter. All the other n-1 tabs will be redirected to the default url and the original url in the redirection parameter is "lost".
If this is interesting and useful to other people, I could start working on it.
The text was updated successfully, but these errors were encountered: