Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentFinderByRedirectUrl

    Provides an implementation of IContentFinder that handles page URL rewrites that are stored when moving, saving, or deleting a node.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Routing
    Assembly: Umbraco.Core.dll
    Syntax
    public class ContentFinderByRedirectUrl : IContentFinder
    Remarks

    Assigns a permanent redirect notification to the request.

    Constructors

    View Source

    ContentFinderByRedirectUrl(IRedirectUrlService, ILogger<ContentFinderByRedirectUrl>, IPublishedUrlProvider, IUmbracoContextAccessor)

    Initializes a new instance of the ContentFinderByRedirectUrl class.

    Declaration
    public ContentFinderByRedirectUrl(IRedirectUrlService redirectUrlService, ILogger<ContentFinderByRedirectUrl> logger, IPublishedUrlProvider publishedUrlProvider, IUmbracoContextAccessor umbracoContextAccessor)
    Parameters
    Type Name Description
    IRedirectUrlService redirectUrlService
    ILogger<ContentFinderByRedirectUrl> logger
    IPublishedUrlProvider publishedUrlProvider
    IUmbracoContextAccessor umbracoContextAccessor

    Methods

    View Source

    TryFindContent(IPublishedRequestBuilder)

    Tries to find and assign an Umbraco document to a PublishedRequest.

    Declaration
    public async Task<bool> TryFindContent(IPublishedRequestBuilder frequest)
    Parameters
    Type Name Description
    IPublishedRequestBuilder frequest

    The PublishedRequest.

    Returns
    Type Description
    Task<System.Boolean>

    A value indicating whether an Umbraco document was found and assigned.

    Remarks

    Optionally, can also assign the template or anything else on the document request, although that is not required.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ContentFinderByRedirectUrl(IRedirectUrlService, ILogger<ContentFinderByRedirectUrl>, IPublishedUrlProvider, IUmbracoContextAccessor)
    • Methods
      • TryFindContent(IPublishedRequestBuilder)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX