Issue Bug Closed

#19723Default language not always honored in result list (has patch)

Ralf Hettinger 12/19/08, 11:45 updated 10/02/18, 12:30

Description

When using indexed_search in multilanguage setups with config.linkVars containing L, there exists the following glitch:
A found result hit which has sys_language_uid=0 (ie default language) won’t be linked to with the right language parameter (ie L=0) from within indexed_search’s result list, if the triggering search is performed with some other than the default language (ie L>0). Instead, the result will be linked to in that other language.
The reason is, that a language parameter is only applied to a result link if the result hit has sys_language_uid > 0. This is okay and indeed desired for environments without multiple languages.

To fix this behaviour, the attached patch suggests an additional TS parameter
plugin.tx_indexedsearch.forceLanguageParamInResultList = (boolean)
that forces the L parameter in result list, even if L=0.

(issue imported from #M9983)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.