Issue Bug Closed

#14385HMENU special=language does not work if L in linkvars

old_pneff 11/13/04, 07:14 updated 08/12/06, 14:26

Description

The 3.7 language menu generates a faulty URL for language switch. When rendering a page with the L querystring in the URL (e.g. index.php?id=10&L=2), the links in the language menu contain two L query strings (e.g. index.php?id=10&L=2&L=1).

This seems to happend only then L is in config.linkVars.

I have created a small patch which fixes the problem. Basically it removes the existing L parameter from $GLOBALS[‘TSFE’]->linkVars before rendering the language menu. This is probably fault, because it would at least have to backup $GLOBALS[‘TSFE’]->linkVars and set it back to the backuped value after the menu is generated (I’m really just guessing here).
(issue imported from #M490)

Reviews 0

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