Monday, June 26, 2017

Get rid of Sitecore trying to set language from URL

Could not parse the language 'XXXX'. Note that a custom language name must be on the form: isoLanguageCode-isoRegionCode-customName. The language codes are two-letter ISO 639-1, and the regions codes are are two-letter ISO 3166. Also, customName must not exceed 8 characters in length. Valid example: en-US-East. For the full list of requirements, see...

If you're getting the following error when loading URLs, and you don't need a language requirement, you can turn off the Sitecore setting in the web.config.

  • Under the "linkManager" sitecore item, set "languageEmbedding" to "never"
  • Under the "Languages.AlwaysStripLanguage" setting, set value to "false"


No comments:

Post a Comment