fond-of-spryker / redirect
Redirects and add locale in url if missing.
Installs: 9 777
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
- jaybizzle/crawler-detect: 1.2.64
- sinergi/browser-detector: 6.1.2
Requires (Dev)
- codeception/codeception: ^2.3
- mikey179/vfsstream: ^1.6
- php-coveralls/php-coveralls: ^2.0
- phpro/grumphp: ^0.14
- sebastian/phpcpd: ^4.0
- spryker/code-sniffer: ^0.11
This package is auto-updated.
Last update: 2024-11-14 14:12:14 UTC
README
Simple redirect router.
- Adds current locale to uri and redirects if not given.
- Removes trailing slash from url if given and redirects.
Examples: example.org/my/path => example.org/[locale]/my/path example.org/en/my/path/ => example.org/en/my/path
*locale - if not given, detect browser locale. If browser locale is not given in shop, use default shop locale.