Migrates UriExtensionsTests to netcore, fixes preview controller bits, adds tests for preview path for back office route check, fixes virtual paths for views,
15 lines
300 B
C#
15 lines
300 B
C#
using Umbraco.Core;
|
|
|
|
namespace Umbraco.Web
|
|
{
|
|
public static class CookieManagerExtensions
|
|
{
|
|
public static string GetPreviewCookieValue(this ICookieManager cookieManager)
|
|
{
|
|
return cookieManager.GetCookieValue(Constants.Web.PreviewCookieName);
|
|
}
|
|
|
|
}
|
|
|
|
}
|