Interface IPublicAccessRequestHandler
Namespace: Umbraco.Cms.Web.Website.Routing
Assembly: Umbraco.Web.Website.dll
Syntax
public interface IPublicAccessRequestHandler
Methods
View SourceRewriteForPublishedContentAccessAsync(HttpContext, UmbracoRouteValues)
Ensures that access to current node is permitted.
Declaration
Task<UmbracoRouteValues> RewriteForPublishedContentAccessAsync(HttpContext httpContext, UmbracoRouteValues routeValues)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.HttpContext | httpContext | |
UmbracoRouteValues | routeValues | The current route values |
Returns
Type | Description |
---|---|
Task<UmbracoRouteValues> | Updated route values if public access changes the rendered content, else the original route values. |
Remarks
Redirecting to a different site root and/or culture will not pick the new site root nor the new culture.