-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Description
Which Umbraco version are you using?
16.0.0
Bug summary
I'm not sure if this is "intended" behaviour?
When you request a node with the "Accept-Segment" header from the Content Delivery API. You end up getting a "segment" returned, even though it's not created.
I would have expected an error (404) or the "Default" segment to be returned if the segment dosen't exists or is not created.
Specifics
Steps to reproduce
- Add one or more segments
- Add a doctype that varies by segment
- Create the node without creating the segmented version
- Request the node from the Content Delivery API with the "Accept-Segment" header
- A node with "null" properties is returned.
Expected result / actual result
If the segment is not created or exists it should return either a error or the default segment.