Download the PHP package inspiredminds/contao-remember-language without Composer
On this page you can find all versions of the php package inspiredminds/contao-remember-language. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download inspiredminds/contao-remember-language
More information about inspiredminds/contao-remember-language
Files in inspiredminds/contao-remember-language
Package contao-remember-language
Short Description Contao 4 extension to redirect to a language saved in a cookie.
License LGPL-3.0-or-later
Homepage https://github.com/inspiredminds/contao-remember-language
Informations about the package contao-remember-language
Contao Remember Language
Contao 4 extension to redirect to a language saved in a cookie when using contao.prepend_locale: true and requesting the domain without any language parameter in the URL.
Configuration
The extension allows you to configure the following:
- Enable or disable the redirect.
- Enable or disable saving the current language in a cookie.
- The name of the cookie.
Caching
If you use caching, make sure to not add the configured cookie to your COOKIE_ALLOWLIST. The information of the cookie is only relevant for requests to https://example.org/ (without any path/parameter), and since Contao (at least up to Contao 4.9) always redirects such requests (with a status code other than 301) when using contao.prepend_locale: true, such requests are never cached. Thus, it is not necessary to prevent caching when the request contains the cookie.
All versions of contao-remember-language with dependencies
contao/core-bundle Version ^4.9 || ^5.0
symfony/config Version ^4.4 || ^5.0 || ^6.0
symfony/dependency-injection Version ^4.4 || ^5.0 || ^6.0
symfony/event-dispatcher Version ^4.4 || ^5.0 || ^6.0
symfony/http-foundation Version ^4.4 || ^5.0 || ^6.0
symfony/http-kernel Version ^4.4 || ^5.0 || ^6.0
symfony/routing Version ^4.4 || ^5.0 || ^6.0