Issue Bug Closed

#30852Multilingual search in translated pages: Results of default language always linking to current language

Florian Busch (floxx) 10/12/11, 17:13 updated 10/17/17, 23:31

Description

If indexed_search is configured to list search results from all languages on one page…

plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang >

…and you’re searching on translated page (with i.e. &L=1 as param) every result from default language links to current linkVar (in this case &L=1).

That’s because function linkPage() from class.tx_indexedsearch.php calls pi_linkToPage() without linkVars if result is from default language. So the current linkVar will be appended in function linkData() of class.t3lib_tstemplate.php which results in defaul language result, linking to current, translated language.

Diff appended.

Reviews 2