-
Notifications
You must be signed in to change notification settings - Fork 756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Links always have the default language in url. #2778
Comments
How do your website aliases look like? |
Hi Sebastian, can you give me an example for an alias. I am not sure what you mean. |
Marc, please check PersonaBar > Website-Einstellungen > Website-Aliase |
Marc, |
I tried that, without success. |
the problem is the language param in the URL. is the wrong language already in the URL before you try to edit the content? Does this happen just since upgrade to latest version DNN/Evoq 9.3? |
Please have a look at my first screenshot. |
For building the URL`S this function is used:
which is using the changed function: |
th problem is the wrong language being passed, but as far as I can see, #2607 tries to avoid this in a different scenario though. The question would be in NavigateURL: is linkTab Null or Linktab.CultureCode? If this method is called for the javascript, this is missing a language and CultureCode should be used from thread. |
Hi @mhessmann , this looks like has no relation to #2607, is it possible that let me take a look at your site and try to find out the root cause? thx |
Hi @zyhfish , the problem can be reproduced with a newly installed version DNN_Platform_9.3.2.24. Add a second language after the installation and check the links. |
This happens when you have not yet localized any pages. Try disabling |
I can confirm the observed behaviour. And having traced through the code there is something pretty strange that happens. Globals line 3017: in NavigateURL in the absence of a required locale, the method looks up the locale that is set on the tab. Then in Globals line 810 in GetCultureCode an attempt is made to find the tab and get its locale. If, like for "User Profile" tab for instance, there is no locale the portal default is returned. PR2607 didn't change this BTW. I would concur with Jan that this is a bug. Here are my conclusions:
Given that these methods are at the heart of DNN's localisation logic we should be thoughtful about how we resolve this! |
I found this yesterday. I think I can get around this with our clients site by using en-US instead of en-GB. But this is a show stopper for nearly all European clients, can we get a emergency release out soon? |
The changes that caused this have been reverted now and pushed to Dnn10 so we can take a better look. This should make it so this current issue is no longer present in 9.4.0. Keep a eye out for 9.4.0 RC and any testing specially for those in this situation is very welcome. |
Description of bug
After Updating to Evoq 3.1.0 all links has the default language in the url.
In our environment we have Deutsch(de-de) and English (en-gb) as languages configured.
Site Default: English (en-gb)
Enable Language Parameter in URLs: On
Enable Browser Language Detection: Off
Users May Choose Interface Language: Off
Allow Content Localization: Off
Example: Am I on a german page an whant to edit an OpenContent Module,
but the link to the editMode includes the en-GB parameter.
So I have no chance to edit german (de-DE) content.
I found the following commit in the last release, and I think this could be the reason.
https://github.com/dnnsoftware/Dnn.Platform/pull/2607/commits
Affected version
The text was updated successfully, but these errors were encountered: