Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Valentin 11 posts 110 karma points
    Mar 26, 2018 @ 06:20
    Valentin
    0

    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

  • Valentin 11 posts 110 karma points
    Mar 26, 2018 @ 06:47
    Valentin
    0

    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

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Mar 26, 2018 @ 08:10
    Michaël Vanbrabandt
    100

    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

  • Valentin 11 posts 110 karma points
    Mar 26, 2018 @ 15:23
    Valentin
    0

    Hi Michaël ok, I understand, thank you for your blog post and clarification

Please Sign in or register to post replies

Write your reply to:

Draft