Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ public static class UmbracoBuilderExtensions
public static IUmbracoBuilder AddCustomContentFinders(this IUmbracoBuilder builder)
{
// Add our custom content finder just before the core ContentFinderByUrl
builder.ContentFinders().InsertBefore<ContentFinderByUrl, MyContentFinder>();
builder.ContentFinders().InsertBefore<ContentFinderByUrlNew, MyContentFinder>();
// You can also remove content finders, this is not required here though, since our finder runs before the url one
builder.ContentFinders().Remove<ContentFinderByUrl>();
builder.ContentFinders().Remove<ContentFinderByUrlNew>();
// You use Append to add to the end of the collection
builder.ContentFinders().Append<AnotherContentFinderExample>();
// or Insert for a specific position in the collection
Expand Down Expand Up @@ -123,9 +123,9 @@ public class UpdateContentFindersComposer : IComposer
public void Compose(IUmbracoBuilder builder)
{
// Add our custom content finder just before the core ContentFinderByUrl
builder.ContentFinders().InsertBefore<ContentFinderByUrl, MyContentFinder>();
builder.ContentFinders().InsertBefore<ContentFinderByUrlNew, MyContentFinder>();
// You can also remove content finders, this is not required here though, since our finder runs before the url one
builder.ContentFinders().Remove<ContentFinderByUrl>();
builder.ContentFinders().Remove<ContentFinderByUrlNew>();
// You use Append to add to the end of the collection
builder.ContentFinders().Append<AnotherContentFinderExample>();
// or Insert for a specific position in the collection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Umbraco ships with a `DefaultUrlProvider`, which provides the implementation for

```csharp
// This one is initialized by default
public class DefaultUrlProvider : IUrlProvider
public class NewDefaultUrlProvider : IUrlProvider
{
public virtual UrlInfo GetUrl(IPublishedContent content, UrlMode mode, string? culture, Uri current)
{…}
Expand Down Expand Up @@ -234,11 +234,11 @@ using Umbraco.Cms.Core.Web;

namespace RoutingDocs.UrlProviders;

public class ProductPageUrlProvider : DefaultUrlProvider
public class ProductPageUrlProvider : NewDefaultUrlProvider
{
public ProductPageUrlProvider(
IOptionsMonitor<RequestHandlerSettings> requestSettings,
ILogger<DefaultUrlProvider> logger,
ILogger<NewDefaultUrlProvider> logger,
ISiteDomainMapper siteDomainMapper,
IUmbracoContextAccessor umbracoContextAccessor,
UriUtility uriUtility,
Expand Down
Loading