Skip to content

Conversation

@andersreus
Copy link
Contributor

Prerequisites

If there's an existing issue for this PR then this fixes #20366

Description

Made sure that the language variant culture was passed along when building the content route. This ensures that the drafted content for that specific culture will return a preview path as expected.

To test it, follow the reproduction steps in the issue.

Copy link
Contributor

@AndyButland AndyButland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @andersreus, nice find. I've tested this out locally and can confirm it fixes the reported issue.

@AndyButland AndyButland changed the title Added culture to the ApiContentRouteBuilder to include variant languages. (#20366) Delivery API: Provided culture to the ApiContentRouteBuilder, fixing issue with route path on preview requests for language variant content (closes #20366) Oct 14, 2025
@AndyButland AndyButland merged commit cdf9ee4 into umbraco:main Oct 14, 2025
26 checks passed
AndyButland pushed a commit that referenced this pull request Oct 14, 2025
…ges. (#20366) (#20499)

Added culture to the ApiContentRouteBuilder to include variant languages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Content Delivery API returns incorrect route for unpublished variant document in preview mode

2 participants