I have some custom logic to compose URL's for some document types, and when (on frontend) I call UrlAbsolute() method, I always got relative. As I understand, my custom provider must convert relative url to absolute.
Please, explain how can I do it?
PS I try call VirtualPathUtility.ToAbsolute but as result I got same relative url
I had the same issue, that's why I wrote the blog post you mentioned. I also raised an issue on the issue tracker http://issues.umbraco.org/issue/U4-9187 but still no response.
Custom IUrlProvider for mode type Absolute
I have some custom logic to compose URL's for some document types, and when (on frontend) I call UrlAbsolute() method, I always got relative. As I understand, my custom provider must convert relative url to absolute. Please, explain how can I do it?
PS I try call VirtualPathUtility.ToAbsolute but as result I got same relative url
PS I've found an article (see class UrlProviderBase) https://www.ucodebase.be/blog/implementing-a-custom-urlprovider-in-umbraco-and-its-pitfalls/ where I found solution that is a best solution? clarify please
Hi Valentin,
I had the same issue, that's why I wrote the blog post you mentioned. I also raised an issue on the issue tracker http://issues.umbraco.org/issue/U4-9187 but still no response.
/Michaël
Hi Michaël ok, I understand, thank you for your blog post and clarification
is working on a reply...