-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Which Umbraco version are you using?
17.0
Bug summary
When having a Segment that is declared to only exist on specific Cultures, it is still evaluated on the other Cultures.
Specifics
No response
Steps to reproduce
- Setup a Segment that is specific to a Culture, like:
private static readonly Segment[] segments = new Segment[] {
new Segment
{
Alias = "just-for-en-us",
Name = "Segment just for English (US)",
Cultures = new[] { "en-US"}
},
};
-
Make sure the project has Languages.
-
Set up a Document-Type that varies by Culture and by Segments.
-
Add a Mandatory Property that varies by Culture and Segments.
-
Create a document of that type, in just en-us culture.
-
Then save.
-
See Segments will appear in Variant Selector. Create the Segment under English.
-
Publish English to confirm that it works as it should.
-
Then create another Culture(like 'da'), and try to save it.
-
See it complaining, but you cannot see where the error originates, as it is an error from the server targeting the segment-variant, but of the culture 'da'. — which should not have been validated :-)
Expected result / actual result
No response