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.Web.Routing
Assembly: Umbraco.Web.dll
Syntax
public class ContentFinderByRedirectUrl : IContentFinder
Remarks
Assigns a permanent redirect notification to the request.
Constructors
View SourceContentFinderByRedirectUrl(IRedirectUrlService, ILogger)
Declaration
public ContentFinderByRedirectUrl(IRedirectUrlService redirectUrlService, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
IRedirectUrlService | redirectUrlService | |
ILogger | logger |
Methods
View SourceTryFindContent(PublishedRequest)
Tries to find and assign an Umbraco document to a PublishedRequest
.
Declaration
public bool TryFindContent(PublishedRequest frequest)
Parameters
Type | Name | Description |
---|---|---|
PublishedRequest | frequest | The |
Returns
Type | Description |
---|---|
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.