Commit 9afa6c7
Jan Nielsen
Add support for language exclusion in sitemap.xml
This PR adds the ability to exclude specific languages from sitemap.xml generation.
### What’s new:
- New property `DisallowLanguages` in `SitemapXmlSettings`
- `SitemapModelFactory` and alternate URL logic now respects this setting
- Default behavior remains unchanged (no exclusions)
### Why:
In some scenarios, site owners may want to:
- Prevent certain language versions from being listed in sitemaps (e.g. test/staging content)
- Avoid conflicting SEO signals when the same languages are excluded in `robots.txt`
This setting provides fine-grained control and separates concerns between `robots.txt` and sitemap configuration.
Closes #77771 parent 197deaa commit 9afa6c7
File tree
2 files changed
+7
-1
lines changed- src
- Libraries/Nop.Core/Domain/Common
- Presentation/Nop.Web/Factories
2 files changed
+7
-1
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
74 | 79 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
887 | 887 | | |
888 | 888 | | |
889 | 889 | | |
890 | | - | |
| 890 | + | |
| 891 | + | |
891 | 892 | | |
892 | 893 | | |
893 | 894 | | |
| |||
0 commit comments