Country Redirect
Easily redirect visitors to a locale based on their country of origin
Country Redirect is on version 2.2.1, released on Nov 12, 2021
- 1 Added
- 1 Changed
Changelog
All notable changes to Country Redirect will be documented here.
Version 2.2.1
✨Added
- –Added `appendExistingQueryParamsToUrl` config option.
⚡Changed
- –Redirect URLs and URLs from `craft.countryRedirect.getLinks()` now retains any existing query params if enabled wit `appendExistingQueryParamsToUrl`
Version 2.2.0
✨Added
- –Added `ignoreUrlPatterns`. It is now possible to either ignore exact matches or use regex when deciding to not redirect
🐛Fixed
- –Fixed redirect loop when redirecting to arbitrary URL within the Craft site
⚠️Deprecated
- –Deprecated `ignoreSegments` in favor of `ignoreUrlPatterns`
Version 2.1.2
🐛Fixed
- –Fixed deprecation error in Composer for asset bundle class
Version 2.1.1
🐛Fixed
- –Fixed problem with country codes not being normalized to lowercase in config
Version 2.1.0
You now have to register for a MaxMind account and obtain a license key in order to download the GeoLite2 databases. This is due to a change that was introduced December 30th 2019, [to comply with GDPR and CCPA](https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/). After upgrading to 2.1.0, you need to add the license key in the Country Redirect plugin settings to continue downloading the databases. Check the readme for detailed instructions on this.
✨Added
- –Added setting `dbPath` to override where the plugin stores its database. By default it will now use the storage path instead of the plugin directory. 💯 improvement.
⚡Changed
- –Tweaked console output when updating the database
🐛Fixed
- –Country codes set in the config file is now case insensitive
Version 2.0.13
✨Added
- –Added helper to append override param to a url
Version 2.0.12
🐛Fixed
- –Fixed exception when plugin was called before the application was fully initialized.
Version 2.0.11
🐛Fixed
- –Fixed exception when plugin was run too early
Version 2.0.10
🐛Fixed
- –Fixed path checking when matching element route
Version 2.0.9
✨Added
- –Added way to pass current site and handle to info endpoint
Version 2.0.8
✨Added
- –Added method to get banner cookie name + param from Twig
🐛Fixed
- –Added param when redirecting by clicking url in banner that sets the banner cookie
Version 2.0.7
⚡Changed
- –Country Redirect now requires Craft 3.1
🐛Fixed
- –Aliases used in urls will now be parsed
Version 2.0.6
✨Added
- –Added variable method to get banner cookie name
Version 2.0.5
🐛Fixed
- –Fixed error when there is no matching banner
Version 2.0.4
✨Added
- –Added option for setting banner for matching country code
Version 2.0.3
✨Added
- –Added endpoint to get Geo information + redirect banner
Version 2.0.2
⚡Changed
- –Fixed site check
Version 2.0.1
⚡Changed
- –Fixed wrong class references
Version 2.0.0
✨Added
- –Initial release