Try Now
More in this section

Forums / Bugs & Issues / Localization with DomainExtension does not work propely

Localization with DomainExtension does not work propely

2 posts, 0 answered
  1. UI Crew
    UI Crew avatar
    151 posts
    27 Sep 2012
    15 Oct 2009
    Link to this post

    Looks like someone may have made the mistake of assuming that a domain must have .com in it when you have localisation set to DomainExtension.

    When you select a different language domain from the language bar in SF admin that doesn't have a .com in it the url gets changed incorrectly. Consider the settings below in my web.config:

        <localization defaultProvider="Sitefinity" persistenceMode="DomainExtension" defaultCulture="en-AU" cultures="en-AU, en-NZ" allowSpecificCultures="true" autoSetClientLanguage="false"
            <add name="Sitefinity" type="Telerik.Localization.Data.DefaultProvider, Telerik.Localization.Data" connectionStringName="DefaultConnection"/> 
            <add key="com.au" culture="en-AU" /> 
            <add key="co.nz" culture="en-NZ" /> 

    When I visit Sitefinity Admin on:


    And use the language bar to select the New Zealand language, Sitefinity changes the domain to:


    It appears that it assumes that domains must have a .com in them.

    Is this a known bug or have i done something wrong?


  2. Stoyanka Assenova
    Stoyanka Assenova avatar
    113 posts
    01 Dec 2016
    15 Oct 2009
    Link to this post
    Hi Seth Cleaver,

    We know this issue. This problem appears because you use specific cultures. If you want to use specific cultures you should use DomainName value for persistenceMode property in the web.config file.
    Here is the code in the web.config file
    <localization defaultProvider="Sitefinity" persistenceMode="DomainName" defaultCulture="en-AU" cultures="en-AU, en-NZ" allowSpecificCultures="true" autoSetClientLanguage="false">
          <add name="Sitefinity" type="Telerik.Localization.Data.DefaultProvider, Telerik.Localization.Data" connectionStringName="DefaultConnection"/>
          <add key="test.com.au" culture="en-AU" />
          <add key="test.co.nz" culture="en-NZ" />

    Hope this helps.

    Kind regards,
    Stoyanka Assenova
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered