Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/visuellverstehen/t3languageredirection
This TYPO3 package provides a middleware that automatically redirects users to the preferred language URL based on their browser's Accept-Language header.
https://github.com/visuellverstehen/t3languageredirection
language-redirect middleware php typo3 typo3-extension url-redirection
Last synced: 3 months ago
JSON representation
This TYPO3 package provides a middleware that automatically redirects users to the preferred language URL based on their browser's Accept-Language header.
- Host: GitHub
- URL: https://github.com/visuellverstehen/t3languageredirection
- Owner: visuellverstehen
- License: mit
- Created: 2023-03-17T12:51:42.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-11T07:50:51.000Z (over 1 year ago)
- Last Synced: 2024-09-30T14:05:41.002Z (3 months ago)
- Topics: language-redirect, middleware, php, typo3, typo3-extension, url-redirection
- Language: PHP
- Homepage:
- Size: 28.3 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# t3languageredirection
A simple middleware language redirect which automatically redirects users to the preferred language URL based on their browser's Accept-Language header.## How to use
You can easily install this extension using Composer:
```bash
composer require visuellverstehen/t3languageredirection
```That's it! No further action required after installation.
## How does it work
This extention will configure a new frontend middleware to your TYPO3 project. This middleware is called `LanguageRedirectionMiddleware`. It is designed to handle simple language redirection for the base URL of a website. It is implemented using the PSR-15 middleware interface.Overall, this middleware helps to ensure that users are directed to the appropriate language version of a website, based on their browser language and the website's configured languages.