-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Allow backend login without redirect #30950
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
Allow backend login without redirect #30950
Conversation
Hi @aapokiiso. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
@magento create issue |
@magento run all tests |
Hello @aapokiiso, thanks for your contribution. I was looking at the failing tests and I think the only two that fails related to this PR are the following functional tests :
Would you mind updating the above functional test (it's the same kind of test failing on both CE and EE)? The other failing tests seem flaky and not directly related to this PR, let the QA team verify that. Thank you again. |
@magento run Functional Tests CE, Functional Tests EE, Functional Tests B2B |
@magento run all tests |
@aleron75 The related functional test has now been fixed |
Hi @aleron75, thank you for the review. |
@magento run all tests |
@magento run all tests |
Hi @aleron75, thank you for the review. |
Note: Automation tests are passed |
Hi @aapokiiso, thank you for your contribution! |
@aapokiiso @aleron75 I feel that test coverage is still missing here, while you just fixed failing MFTF tests. |
Description (*)
Currently, when accessing a backend page via a direct URL as a logged out admin, the admin is redirected to
<backend-url>/admin
to log in. After logging in, they are redirected to the admin dashboard (or whatever page is selected as the startup page in system configuration).This can be frustrating, since the admin now has to manually navigate to the requested page. This also potentially prevents some scripted tasks.
This PR proposes to remove the redirect to
<backend-url>/admin
, in which case the log in happens on the same page as the requested page (same as M1). The user is directly redirected to the requested page after login.Related Pull Requests
Manual testing scenarios (*)
Magento_Catalog::products
ACL resource).<backend-url>/catalog/product/
<backend-url>/catalog/product/
with this PR.Contribution checklist (*)
Resolved issues: