biedert/language-redirect

Language Redirect

Installs: 347

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

Type:typo3-cms-extension

2.0.2 2019-03-21 18:15 UTC

This package is not auto-updated.

Last update: 2024-04-12 22:16:38 UTC


README

A cookie-free solution for language redirects based on the HTTP_ACCEPT_LANGUAGE header for TYPO3 CMS.

How does it work?

When you call a URL without the language parameter L, the extension will map the HTTP_ACCEPT_LANGUAGE header to the installed system languages and redirect to it. Should also work with all available url encryption extensions (e.g. realurl).

Installation

Simply install the extension via composer

composer req biedert/language-redirect

or download it via th TYPO3 Extension Repository: https://extensions.typo3.org/extension/language_redirect/

Configuration

To map the language codes to the system languages, simply list them in the browserLanguageMatch setup.

In case the HTTP_ACCEPT_LANGUAGE header doesn't match any system language, the extension will redirect to a fallback language uid defined in the extension config (default is 0).

Notice

To make the extension work, make sure you don't have a defaultGetVars setting for the language parameter L:

config.defaultGetVars.L >