DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Browser language detection broken after upgrade

Sort:
You are not authorized to post a reply.
Page 1 of 212 > >>





New Around Here





    Hello, I have upgrade a website from 9.2 to 9.11 and  now the detection of browser language is not done anymore if portal alias is not correct. I am able to reproduce issue 100% by downloading clean install of both versions from github. 

    Step to reproduce : 

    • Create Website normally
    • Add a new language
    • Allow LocalizedContent, Enable Localized Content, Enable Browser Language Detection
    • Make the home page available for both default and new language
    • Go to Site Behavior -> Site aliases and unassign primary site alias without language (to force people having the language in the url)
    • Open incognito tab and browse home page (without any language in the url)

    In 9.2 we were redirect to browser language, in 9.11 users are redirected to the default system language. 

    Thanks in advance






    Veteran Member





      If this is a reproducable bug, you should document it here:

      Issues · dnnsoftware/Dnn.Platform · GitHub

      Happy DNNing!
      Michael

       

      Michael Tobisch
      DNN★MVP

      dnnWerk Austria
      DNN Connect





      Veteran Member





        Did you also try this in a Private Browser window?
        Browsers are notorious for caching 301 redirects..






        Advanced Member





          Have you double check that everything looks okay in section "Site Settings -> Site Aliases"?

          Ing. Marco Alvarado Gómez MSc | Globalode
          Phone. +506 6049-1880 | WhatsApp. +506 6049-1880 | Email. [email protected]
          Address. Costa Rica (A Pura Vida place!).





          New Around Here





            Thanks for your answers.

            Did you also try this in a Private Browser window?

            Yes I tryed private mode and even others browsers. As mentionned we are able to reproduce it 100% even from clean configuration by creating a DNN website.

            Have you double check that everything looks okay in section "Site Settings -> Site Aliases"?

            What do you mean by "everything looks okay". Because yes everything is supposed to be okay





            Senior Member





              We can't quite answer you intelligently about whether or not your Site Aliases look okay or not.  That's something that only you can know. 

              In general, you should only ever have the URLs that the site should respond to, and only one as a primary domain name.  The rest should be redirects/rewrites or deleted altogether.  






              New Around Here





                I am having a similar issue. I just upgraded to 9.10.2 and I only have one site that is localized. That one site in my testing environment, that is running 9.10.2, works fine and sets the language cookie and all things that depend on the cookie changes like it should. In my production site the language cookie isn't being set, it remains null, so things that are built into the skin that depend on the cookie doesn't translate.

                Site aliases look ok and the site responds to all the aliases, though not all of them have a language associated with them, only the specific localized URLs. The base URLs I don't have the language set for them.





                Veteran Member





                  And the production site is the same DNN version?






                  Growing Member





                    check for differences in your IIS configuration

                    this might be relevant?... https://www.itnota.com/en...ttponly-cookies-iis/

                     






                    New Around Here





                      Yes both test and production sites use the same version.

                      You are not authorized to post a reply.
                      Page 1 of 212 > >>

                      These Forums are dedicated to the discussion of DNN Platform.

                      For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

                      1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
                      2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
                      3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
                      4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
                      5. No Flaming or Trolling.
                      6. No Profanity, Racism, or Prejudice.
                      7. Site Moderators have the final word on approving / removing a thread or post or comment.
                      8. English language posting only, please.

                      Would you like to help us?

                      Awesome! Simply post in the forums using the link below and we'll get you started.

                      Get Involved