RTE and media picker should route medias the same way in the Delivery API (#16550)

* RTE and media picker should route medias the same way in the Delivery API

* Fix failing unit test

* Fixed failing tests
This commit is contained in:
Kenn Jacobsen
2024-06-04 10:32:37 +02:00
committed by GitHub
parent 32912b0c35
commit 3dace4fc9d
6 changed files with 16 additions and 34 deletions

View File

@@ -17,6 +17,6 @@ public sealed class ApiMediaUrlProvider : IApiMediaUrlProvider
throw new ArgumentException("Media URLs can only be generated from Media items.", nameof(media));
}
return _publishedUrlProvider.GetMediaUrl(media, UrlMode.Relative);
return _publishedUrlProvider.GetMediaUrl(media);
}
}