is this a new method from a recent hotfix or has it always been there?
I don't know for sure, but I assume this was introduced in the original release of Kentico Xperience 13 as a method supporting the content tree-based URL routing.
I've always used the DocumentURLProvider.GetUrl, but with that (and probably with this) make sure you call .WithPageUrlPaths() on your document query so it joins and doesn't trigger a hidden extra query to get that data.
.WithPageUrlPaths()
Please, sign in to be able to submit a new answer.