in2code-de / ipandlanguageredirect

TYPO3 redirect - browserlanguage and ip-address based
GNU General Public License v3.0
14 stars 14 forks source link

[BUGFIX] Use correct sitelanguage:languageId for TYPO3 9 compatibility #15

Closed koehnlein closed 5 years ago

koehnlein commented 5 years ago

data = GP:L does not work anymore in TYPO3 9 and is replaced with data = sitelanguage:languageId

einpraegsam commented 5 years ago

Thx for the time that you've spent into that issue, but at the moment I don't want to drop 8.7 support. Do you see a solution for both versions?

koehnlein commented 5 years ago

See updated commits:

This uses data = sitelanguage:languageId by default and if empty data = GP:L.

Drawback could be, if default language is shown, sitelanguage:languageId is 0 what's validated as empty, and so the user could overwrite the setting by adding ?L=<any integer>.