Skip to content

Provide the option to remove the channel name from the sitemap location's path #274

@nina-alin

Description

@nina-alin

Hi!

We are using your plugin at my company. Thank you for this plugin; it works like a charm 🌟!

Currently, we are using this plugin to generate our sitemap, and then write it to a bucket via Flysystem. However, the generated path includes the channel name, which is not relevant to us since we only have one channel on our Sylius setup, and this is unlikely to change in the future.

The following line in the GenerateSitemapCommand class is causing an issue:

$path = $this->path($channel, \sprintf('%s.xml', $provider->getName()));

This isn't a major problem, just a matter of perfectionism. On our bucket, we now have a directory with the channel name, which isn't optimal and can even be quite misleading.

At the moment, we don't see any easy fixes, aside from overriding the entire GenerateSitemapCommand class. Since the executeChannel function is private, we can't easily override it.

I'm not sure what the best solution for this problem is. Do you have any suggestions?

Thank you in advance for your response, and once again, thank you for this great plugin!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions