Skip to content

Commit de1e7ac

Browse files
committed
update v15 ContentFinderByUrl and DefaultUrlProvider
1 parent ce0b891 commit de1e7ac

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

15/umbraco-cms/reference/routing/request-pipeline/icontentfinder.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ public static class UmbracoBuilderExtensions
8585
public static IUmbracoBuilder AddCustomContentFinders(this IUmbracoBuilder builder)
8686
{
8787
// Add our custom content finder just before the core ContentFinderByUrl
88-
builder.ContentFinders().InsertBefore<ContentFinderByUrl, MyContentFinder>();
88+
builder.ContentFinders().InsertBefore<ContentFinderByUrlNew, MyContentFinder>();
8989
// You can also remove content finders, this is not required here though, since our finder runs before the url one
90-
builder.ContentFinders().Remove<ContentFinderByUrl>();
90+
builder.ContentFinders().Remove<ContentFinderByUrlNew>();
9191
// You use Append to add to the end of the collection
9292
builder.ContentFinders().Append<AnotherContentFinderExample>();
9393
// or Insert for a specific position in the collection
@@ -123,9 +123,9 @@ public class UpdateContentFindersComposer : IComposer
123123
public void Compose(IUmbracoBuilder builder)
124124
{
125125
// Add our custom content finder just before the core ContentFinderByUrl
126-
builder.ContentFinders().InsertBefore<ContentFinderByUrl, MyContentFinder>();
126+
builder.ContentFinders().InsertBefore<ContentFinderByUrlNew, MyContentFinder>();
127127
// You can also remove content finders, this is not required here though, since our finder runs before the url one
128-
builder.ContentFinders().Remove<ContentFinderByUrl>();
128+
builder.ContentFinders().Remove<ContentFinderByUrlNew>();
129129
// You use Append to add to the end of the collection
130130
builder.ContentFinders().Append<AnotherContentFinderExample>();
131131
// or Insert for a specific position in the collection

15/umbraco-cms/reference/routing/request-pipeline/outbound-pipeline.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Umbraco ships with a `DefaultUrlProvider`, which provides the implementation for
157157

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

235235
namespace RoutingDocs.UrlProviders;
236236

237-
public class ProductPageUrlProvider : DefaultUrlProvider
237+
public class ProductPageUrlProvider : NewDefaultUrlProvider
238238
{
239239
public ProductPageUrlProvider(
240240
IOptionsMonitor<RequestHandlerSettings> requestSettings,
241-
ILogger<DefaultUrlProvider> logger,
241+
ILogger<NewDefaultUrlProvider> logger,
242242
ISiteDomainMapper siteDomainMapper,
243243
IUmbracoContextAccessor umbracoContextAccessor,
244244
UriUtility uriUtility,

0 commit comments

Comments
 (0)