-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
BUG: Login As (user impersonation) not working with subfolders #4797
Comments
Maybe this static location here is causing this: |
Yeah, it is. There was a PR to fix this (sorry, forgot to add that in the report), but it was never merged: https://github.com/Unikka/login-as/pull/16/files |
Given that this script is included in pretty much all backend modules I guess we have to generate the correct url in the generic Module/Index.html template in Neos.Neos and then grab it from the markup in this script. |
So far I haven't encountered any problems with other backend modules, though 🤔 I can do some more testing, but everything else seems to be working fine. |
As described in the issue, the impersonation does not work when Neos is running in a subfolder. This change adds a data attribute with a dynamic URL to the DOM, and the user impersonation is using this module URL as base. Fixes: #4797
Well there is another issue in the UI which is not that breaking: neos/neos-ui#3712 |
Addressing an issue where the redirection to /neos fails when Neos runs in a subfolder. This commit introduces a new route to the defaultModule. The index action of the backend controller is responsible for ensuring the correct backend module. Additionally, consideration for the preferredStartModules configuration has been incorporated here. Fixes: neos/neos-development-collection#4797
Is there an existing issue for this?
Current Behavior
When working in a Neos installation in a subfolder, the user impersonation functionality doesn't work and I get an error saying "Could not switch to the selected user." In Neos installations without subfolder, it's working fine.
Expected Behavior
It should always be possible to switch users, regardless of using subfolders or not.
Steps To Reproduce
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: