Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Umbraco version: 8.1.5
If I create a class inheriting the DefaultMediaUrlProvider in order to override GetMediaUrl, I can't get it to kick in.
The code looks like this(have not implemented logic, as I would like to see it kick in first)
public class ImgIxUrlProvider : DefaultMediaUrlProvider
public override UrlInfo GetMediaUrl(UmbracoContext umbracoContext, IPublishedContent content, string propertyAlias, UrlMode mode,
string culture, Uri current)
return base.GetMediaUrl(umbracoContext, content, propertyAlias, mode, culture, current);
[RuntimeLevel(MinLevel = RuntimeLevel.Run)]
public class ImgIxUrlProviderComposer : IUserComposer
public void Compose(Composition composition)
// no luck
// no luck
If I set a breakpoints in my Composer.Compose method and one in ImgIxUrlProvider.GetMediaUrl, only the Composer.Compose gets hit. Setting one in GetMediaUrl does not get hit. So something is not wireing up as I would expect.
My goal is to replace the default media URL with ImgIx(cdn) url.
Can you see what I am missing?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted