Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Robots.txt generate sitemap links even if dimension has no content #189

Open
1 of 3 tasks
dlubitz opened this issue Dec 11, 2024 · 0 comments
Open
1 of 3 tasks
Assignees
Labels

Comments

@dlubitz
Copy link
Contributor

dlubitz commented Dec 11, 2024

This is a (multiple allowed):

  • bug

  • enhancement

  • feature-discussion (RFC)

  • Version: 3.3.5

  • Platform/Target and Browser Versions:

What you did

If you have a multisite where not all sites use all dimensions, the sitemap.xml reference in the robots.txt gets rendered anyways.

Expected Behavior

Only sitemaps of dimensions with content should get rendered.

Sitemap: https://domain.de/sitemap.xml # default language
Sitemap: https://domain.de/en/sitemap.xml # en language

Actual Behavior

A sitemap link for all configured dimensions get rendered, independent of the content.

Sitemap: https://domain.de/sitemap.xml # default language
Sitemap: https://domain.de/en/sitemap.xml # en language
Sitemap: https://domain.de/sitemap.xml # unused language of this site (e.g. nl) with no content
Sitemap: https://domain.de/sitemap.xml # unused language of this site (e.g. pl) with no content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant