Quantcast
Channel: CKEditor™ Provider for DNN®
Viewing all articles
Browse latest Browse all 1992

Commented Issue: URL for multi-language site [7405]

$
0
0
1) Link dialog , Browse Server, page Link

a)
When you are on a multi language portal (more then 1 language active or content localization active)

you have to put the correct language in the url. Otherwise sure you have some problems.

Request : put the current language in the url by default (or config setting)

(sure this not easy when working with ML content capable modules like apollo MLHTML, but when you use dnn standard content localization, you always write the text in the current portal language)

Maybe only enable it when dnn content locaization is enabled .

b)
When a url rewriter is used , and select de culture in de page link dialog, the url generated dont respect the url rewriter.

Exemple : /en-US/my-page.aspx is generated in place of /en/my-page.aspx

2) The same for the new link type, portal page
Comments: ** Comment from web user: sachatrauwaen **

You can find this in globals.cs of dnn 6.2.7

```
//only add language to url if more than one locale is enabled
if (settings != null && Language != null && LocaleController.Instance.GetLocales(settings.PortalId).Count > 1)
{
if (settings.ContentLocalizationEnabled)
{
if (Language == "")
{
if (objTab != null && !string.IsNullOrEmpty(objTab.CultureCode))
{
strURL += "&language=" + objTab.CultureCode;
}
}
else
{
strURL += "&language=" + Language;
}
}
else if (settings.EnableUrlLanguage)
{
//legacy pre 5.5 behavior
if (Language == "")
{
strURL += "&language=" + Thread.CurrentThread.CurrentCulture.Name;
}
else
{
strURL += "&language=" + Language;
}
}
}


```


Viewing all articles
Browse latest Browse all 1992

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>