Hi,
I've updated a DNN 5.6 to 6.0 and now when I try to change the language, the url won't be generated correctly:
instead of:
blabla.com/de-at/home.aspx
will be changed in
blabla.com/dotnetnuke.services.localization.locale/home.aspx
in DotNetNuke.UI.Skins.Controls.LanguageTokenReplace the following method is executed:
01.
private
string
newUrl(
string
newLanguage)
02.
{
03.
var objSecurity =
new
PortalSecurity();
04.
Locale newLocale = LocaleController.Instance.GetLocale(newLanguage);
05.
06.
//Ensure that the current ActiveTab is the culture of the new language
07.
int
tabId = objPortal.ActiveTab.TabID;
08.
bool
islocalized =
false
;
09.
10.
TabInfo localizedTab =
new
TabController().GetTabByCulture(tabId, objPortal.PortalId, newLocale);
11.
if
(localizedTab !=
null
)
12.
{
13.
islocalized =
true
;
14.
tabId = localizedTab.TabID;
15.
}
16.
17.
return
18.
objSecurity.InputFilter(
19.
Globals.NavigateURL(tabId, objPortal.ActiveTab.IsSuperTab, objPortal, HttpContext.Current.Request.QueryString[
"ctl"
], newLanguage, getQSParams(newLocale.ToString(), islocalized)),
20.
PortalSecurity.FilterFlag.NoScripting);
21.
}
at line 19:
newLocale.ToString()
is executed and it returns:
dotnetnuke.services.localization.locale instead of "de-AT".
i've took a look in DotNetNuke.Services.Localization.Locale and the "toString" method is not overriden -> so it is impossible to work...
Does anyone know what is wrong? (I could repair it but I want to know why it doesn't work - because I did a fresh dnn 6 install and everything works perfect..)
many thanks,
Victor