Skip to content

Instantly share code, notes, and snippets.

@AndyButland
Created April 18, 2025 05:56
Show Gist options
  • Save AndyButland/12db32090e87a2db4ba8a6fc13931642 to your computer and use it in GitHub Desktop.
Save AndyButland/12db32090e87a2db4ba8a6fc13931642 to your computer and use it in GitHub Desktop.
using Umbraco.Cms.Core.Composing;
using Umbraco.Cms.Core.Routing;
namespace Umbraco.Cms.Web.UI.Composers;
public class SoftwarePageUrlsComposer : IComposer
{
public void Compose(IUmbracoBuilder builder)
{
builder.UrlProviders().Insert<SoftwarePageUrlProvider>();
builder.ContentFinders().InsertBefore<ContentFinderByUrlNew, SoftwarePageContentFinder>();
builder.UrlSegmentProviders().Insert<SoftwarePageUrlSegmentProvider>();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment