Skip to content

[Issue] User is not redirected when use_store is enabled and path is empty #38625

Closed
@m2-assistant

Description

This issue is automatically created based on existing pull request: #38616: User is not redirected when use_store is enabled and path is empty


Description (*)

When the setting use store code in url is enabled, and the setting redirect to base url is enabled, the end-user is not redirected to base url with store code in path if the request url has an empty path. It's because in the store::baseUrl method, the web type doesn't add the store code, while link type does.

Related Pull Requests

Fixed Issues (if relevant)

  1. Fixes magento/magento2#<issue_number>

Manual testing scenarios (*)

  1. ...
  2. ...

Questions or comments

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)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

Metadata

Labels

Issue: needs updateAdditional information is require, waiting for responsePriority: P3May be fixed according to the position in the backlog.Progress: doneReported on 2.4.xIndicates original Magento version for the Issue report.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions