Description
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
- MAGETWO-45465 The proposed code to be removed was added in this commit.
Manual testing scenarios (*)
- Add an admin user with a role that allows them to view products (
Magento_Catalog::products
ACL resource). - Make sure you're logged out from the backend.
- Attempt to access
<backend-url>/catalog/product/
- The login form should be presented to you. Check the URL - you should still be on
<backend-url>/catalog/product/
with this PR. - Log in.
- You should see the product listing directly (and not be redirected to the startup page).
Contribution checklist (*)
- Pull request has a meaningful description of its purpose
- All commits are accompanied by meaningful commit messages
- All new or changed code is covered with unit/integration tests (if applicable)
- All automated tests passed successfully (all builds are green)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status