Skip to content

Custom URL rewrites with / as the target path currently generate a redirect URL with a double slash. #41194

Description

@monteshot

Preconditions and environment

  • Magento version - Latest (also tested on 2.4.6-p12).

Steps to reproduce

  1. In the Admin, go to Marketing > SEO & Search > URL Rewrites.
  2. Create a custom URL rewrite for the Default Store View with these values:
    • Request Path: some-test1
    • Target Path: /
    • Redirect Type: Permanent (301)
  3. Save the URL rewrite.
  4. Open https://first.magento.test/some-test1/ in a browser.
  5. Verify that the response is a 301 redirect to https://first.magento.test/, not https://first.magento.test//.

Expected result

No slash doubling - NO SEO impact

Actual result

Target path currently generate a redirect URL with a double slash

Additional information

Proposed fix: #41192

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area: SEO / MetadataComponent: UrlIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Reported on 2.4.6-p12Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions