Skip to content

sitemap.xml build wrong urls for sitemapindex via cron #9440

Closed
@christian-forgacs

Description

@christian-forgacs

In our setup the sitemap generation build wrong urls for the sitemapindex via cron.

Preconditions

  1. Magento 2.1.6
  2. PHP 7.0.8
  3. Home of www-data user (execute the cron) is /var/www/
  4. Sitemap generation via cron is activated
    • Generation over Magento 2 Admin Panel works correct
    • Generation over Magento 2 Cron generate wrong urls

Steps to reproduce

  1. Start sitemap generation via cron

Expected result

  1. Normally the urls in sitemapindex are correct and used from Magento 2 main directory.

Actual result

  1. In the sitemapindex via cron the complete path from the home directory of the www-data user to the Magento 2 directory is set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions