Copied to clipboard

Flag this post as spam?

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


  • Elgars 4 posts 74 karma points
    1 week ago
    Elgars
    0

    Different output result from 9.0 to 9.1 when using .Url(culture)

    Hi,

    After upgrade I've noticed different results when using .Url(culture) on IPublishedContent.

    State: I have a Umbraco site, which has a single language en-US, site node, doesn't have any hostnames set to it. None of my content currently varies by culture.

    When I fetch a published node and want to retrieve its URL for specific culture (UmbracoContext.Domains.DefaultCulture):

    In Umbraco 9.0 - I would get the actual URL node, the same result as just .Url() without culture.

    In Umbraco 9.1 - .Url() returns the expected result same as 9.0, but when specifying culture as the parameter, the result is #.

    Can somebody please explain what has changed?

    Thanks in advance

  • Elgars 4 posts 74 karma points
    1 week ago
    Elgars
    0

    Allright, after some investigation, it looks like 9.1 is sensitive to casing of culture name, 9.0 didn't care much if it was en-us or en-US, but 9.1 does care, it must be en-US when using .Url(culture).

Please Sign in or register to post replies

Write your reply to:

Draft