Copied to clipboard

Flag this post as spam?

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


  • Alessandro Calzavara 32 posts 144 karma points c-trib
    May 19, 2015 @ 12:21
    Alessandro Calzavara
    0

    IUrlSegmentProvider, 1:1 translations with different url

    Hi guys,
    I'm trying to implement my own UrlSegmentProvider with the IUrlSegmentProvider interface,

    the problem that I am having is that I cannot seem to find a reference to the hostname during the call to GetUrlSegment, because what I wanted to do is to return a different string based on the "current" hostname being evaluated (multilanguage installation with 1:1 contents but with different urls).

    [Edit] I just realized that the function is been called 4 times on Document Save, even if I have just one hostname (bug?), and only one value is used (I tried  with a random one), so my approach is completely wrong

    Is the right / the only approach to implement my own IContentFinder ?

Please Sign in or register to post replies

Write your reply to:

Draft