Skip to content

Commit 7823097

Browse files
committed
Always add culture (if available) to preview URL
1 parent b21c2bb commit 7823097

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Umbraco.Core/Routing/NewDefaultUrlProvider.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ public virtual IEnumerable<UrlInfo> GetOtherUrls(int id, Uri current)
145145
=> Task.FromResult<UrlInfo?>(
146146
UrlInfo.AsUrl(
147147
$"/{Constants.System.UmbracoPathSegment}/preview?id={content.Key}&culture={culture}&segment={segment}",
148-
Alias));
148+
Alias,
149+
culture,
150+
isExternal: false));
149151

150152
#endregion
151153

0 commit comments

Comments
 (0)