- Issue created by @jamsilver
At the moment this module's language-country-url
negotiation method hard-codes an expectation that url prefixes will be of the form /LANGCODE-COUNTRYCODE/
. The COUNTRYCODE
part takes its value from the country_code base field on the respective lcn_country entity. The LANGCODE
part takes its value from the core's language-url
negotiation method configuration.
The latter is confusing because, in the admin UI, language-url
appears to be an unrelated negotiation method. Moreover, a site builder may wish to use multiple negotiation methods in a fallback arrangement, and LCN currently prevents the possibility of configuring language-url
differently to language-country-url
, which seems a shame.
language-url
to language-country-url
so LCM holds the equivalent config for customising the language prefixes but under its own namespace (call it Language path prefix configuration). These should default to the language codes, but are available for customisation./LANGCODE-COUNTRYCODE/
(but honour the above configuration so each part may be customized within the negotiation method). I suppose this format could be exposed as configuration--a simple string with tokens in (e.g. :language-:country
), but that feels like overkill--this is a standard format for regional language variations.
Active
1.0
Code