Version 2.2.1

November 12, 2021

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

October 25, 2021

Added

  • Added ignoreUrlPatterns. It is now possible to either ignore exact matches or use regex when deciding to not redirect
  • Added queryParamsValue that allows you to override the default query params value (the ✓)

Fixed

  • Fixed redirect loop when redirecting to arbitrary URL within the Craft site

Deprecated

  • Deprecated ignoreSegments in favor of ignoreUrlPatterns

Version 2.1.2

September 4, 2020

Fixed

  • Fixed deprecation error in Composer for asset bundle class
  • Fixed PSR-4 autoloading for Composer 2.0

Version 2.1.1

June 16, 2020

Fixed

  • Fixed problem with country codes not being normalized to lowercase in config

Version 2.1.0

May 30, 2020

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. 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.
  • Converted hardcoded filenames and urls to settings: countryDbFilename, cityDbFilename, countryDbDownloadUrl, cityDbDownloadUrl
  • Added ext-zlib as dependency to reduce environment errors

Fixed

  • Country codes set in the config file is now case insensitive
  • Removed duplicate console command

Changed

  • Tweaked console output when updating the database
  • Database files will now be stored in the storage path by default, instead of in the plugin folder.

Version 2.0.13

August 19, 2019

Added

  • Added helper to append override param to a url

Version 2.0.12

June 24, 2019

Fixed

  • Fixed exception when plugin was called before the application was fully initialized.

Version 2.0.11

February 5, 2019

Fixed

  • Fixed exception when plugin was run too early

Version 2.0.10

January 29, 2019

Fixed

  • Fixed path checking when matching element route

Version 2.0.9

January 29, 2019

Added

  • Added way to pass current site and handle to info endpoint

Version 2.0.8

January 29, 2019

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

January 25, 2019

Changed

  • Country Redirect now requires Craft 3.1

Fixed

  • Aliases used in urls will now be parsed

Version 2.0.6

January 24, 2019

Added

  • Added variable method to get banner cookie name

Version 2.0.5

January 24, 2019

Fixed

  • Fixed error when there is no matching banner

Version 2.0.4

January 24, 2019

Added

  • Added option for setting banner for matching country code

Version 2.0.3

January 24, 2019

Added

  • Added endpoint to get Geo information + redirect banner

Version 2.0.2

August 14, 2018

Changed

  • Fixed site check

Version 2.0.1

July 2, 2018

Changed

  • Fixed wrong class references

Version 2.0.0

June 15, 2018

Added

  • Initial release