Skip to content

Sitemap Enable submission to robots.txt has wrong URL #30901

Open
@dverkade

Description

@dverkade

Preconditions

  1. Magento 2.3.5
  2. Have nginx pointing to the /pub folder as root

Steps to reproduce

  1. Go to Marketing -> Sitemap and create a sitemap
  2. Enable "Submit sitemap to robots.txt" under Stores -> Configuration -> Sitemap XML

Expected result

  1. Sitemap does not have the "pub" folder in the URL
  2. Robots.txt does not reference the "pub" folder in the sitemap URL

Actual result

  1. Sitemap has the /pub/ folder in it, see screenshot: https://2667042cf8efa924a5b80b43b37079a1-2-4-develop.instances.magento-community.engineering/pub/sitemap.xml
  2. Robots.txt has reference to the sitemap with /pub/ in it: https://2667042cf8efa924a5b80b43b37079a1-2-4-develop.instances.magento-community.engineering/pub/sitemap.xml

image

image


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • 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”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: SEOComponent: SitemapIssue: 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.Progress: ready for devReported on 2.3.5Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions