[Issue] Allow backend login without redirect #31042
Labels
Component: Backend
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Priority: P2
A defect with this priority could have functionality issues which are not to expectations.
Progress: done
Reproduced on 2.4.x
The issue has been reproduced on latest 2.4-develop branch
Severity: S2
Major restrictions or short-term circumventions are required until a fix is available.
This issue is automatically created based on existing pull request: #30950: Allow backend login without redirect
Description (*)
Magento 2.4-develop
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 (*)
The text was updated successfully, but these errors were encountered: