Should I be able to replace the core implementatio...
# help-with-umbraco
p
I need to ensure that API media urls are always returned as relative so I have implemented my own very simple
IApiMediaUrlProvider
class. I have registered in my composer
builder.Services.AddSingleton<IApiMediaUrlProvider, ApiMediaUrlProvider>();
but it does not appear to be used. Should we be able to override this or do I need to look for a different solution?
Turns out I had already implemented what I needed and it was my own fault that absolute urls were being returned! For anyone else including my future self that stumbles across this, my implementation above was correct.
3 Views